Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
et_xmlfile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
openpyxl
et_xmlfile
Commits
3466320d
Commit
3466320d
authored
7 months ago
by
Daniel Hillier
Browse files
Options
Downloads
Patches
Plain Diff
Skip failing pypy stdlib tests
parent
cd757be1
No related branches found
No related tags found
1 merge request
!3
And incremental support to the witer
Pipeline
#85277
failed
7 months ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
et_xmlfile/tests/stdlib_base_tests.py
+47
-0
47 additions, 0 deletions
et_xmlfile/tests/stdlib_base_tests.py
et_xmlfile/tests/test_nsetree_with_stdlib_tests.py
+9
-3
9 additions, 3 deletions
et_xmlfile/tests/test_nsetree_with_stdlib_tests.py
with
56 additions
and
3 deletions
et_xmlfile/tests/stdlib_base_tests.py
+
47
−
0
View file @
3466320d
import
io
import
platform
import
sys
import
unittest
import
unittest.case
...
...
@@ -240,9 +241,28 @@
def
test_initialize_parser_without_target
(
self
):
super
().
test_initialize_parser_without_target
()
@unittest.skipIf
(
(
platform
.
python_implementation
()
==
"
PyPy
"
and
sys
.
version_info
[:
3
]
<
(
3
,
10
,
15
)
),
"
Functionality reverted but not picked up by PyPy yet
"
,
)
def
test_simpleops
(
self
):
super
().
test_simpleops
()
class
BasicElementTest
(
test_xml_etree
.
BasicElementTest
):
@unittest.skipIf
(
platform
.
python_implementation
()
==
"
PyPy
"
,
"
Fails on pypy
"
,
)
def
test_pickle_issue18997
(
self
):
super
().
test_pickle_issue18997
()
class
BugsTest
(
test_xml_etree
.
BugsTest
):
@unittest.skipIf
(
sys
.
version_info
[:
2
]
<
(
3
,
9
),
"
Fails in py3.8
"
)
def
test_39495_treebuilder_start
(
self
):
super
().
test_39495_treebuilder_start
()
...
...
@@ -243,9 +263,16 @@
class
BugsTest
(
test_xml_etree
.
BugsTest
):
@unittest.skipIf
(
sys
.
version_info
[:
2
]
<
(
3
,
9
),
"
Fails in py3.8
"
)
def
test_39495_treebuilder_start
(
self
):
super
().
test_39495_treebuilder_start
()
@unittest.skipIf
(
platform
.
python_implementation
()
==
"
PyPy
"
,
"
sys.getrefcount doesn
'
t exist
"
,
)
def
test_bug_xmltoolkit63
(
self
):
super
().
test_bug_xmltoolkit63
()
class
XIncludeTest
(
test_xml_etree
.
XIncludeTest
):
@unittest.skipIf
(
sys
.
version_info
[:
2
]
<
(
3
,
9
),
"
Fails in py3.8
"
)
...
...
@@ -329,6 +356,26 @@
fn
=
super
().
test_simple_xml
fn
(
chunk_size
=
chunk_size
,
flush
=
flush
)
@unittest.skipIf
(
(
platform
.
python_implementation
()
==
"
PyPy
"
and
sys
.
version_info
[:
3
]
<
(
3
,
10
,
15
)
),
"
Fails on PyPy at the moment
"
,
)
def
test_simple_xml_chunk_1
(
self
):
super
().
test_simple_xml_chunk_1
()
@unittest.skipIf
(
(
platform
.
python_implementation
()
==
"
PyPy
"
and
sys
.
version_info
[:
3
]
<
(
3
,
10
,
15
)
),
"
Fails on PyPy at the moment
"
,
)
def
test_simple_xml_chunk_5
(
self
):
super
().
test_simple_xml_chunk_5
()
class
BoolTest
(
test_xml_etree
.
BoolTest
):
...
...
This diff is collapsed.
Click to expand it.
et_xmlfile/tests/test_nsetree_with_stdlib_tests.py
+
9
−
3
View file @
3466320d
...
...
@@ -4,6 +4,7 @@
import
itertools
import
operator
import
pickle
import
platform
import
sys
import
unittest
import
unittest.case
...
...
@@ -143,9 +144,14 @@
self
.
serialize_check
(
element
,
'
<tag key=
"
value
"
><subtag /></tag>
'
)
# 4
element
.
remove
(
subelement2
)
self
.
serialize_check
(
element
,
'
<tag key=
"
value
"
/>
'
)
# 5
with
self
.
assertRaises
(
ValueError
)
as
cm
:
element
.
remove
(
subelement
)
self
.
assertEqual
(
str
(
cm
.
exception
),
'
list.remove(x): x not in list
'
)
if
not
(
platform
.
python_implementation
()
==
"
PyPy
"
and
sys
.
version_info
[:
3
]
<
(
3
,
10
,
15
)
):
# Functionality reverted but not picked up by PyPy yet
with
self
.
assertRaises
(
ValueError
)
as
cm
:
element
.
remove
(
subelement
)
self
.
assertEqual
(
str
(
cm
.
exception
),
'
list.remove(x): x not in list
'
)
self
.
serialize_check
(
element
,
'
<tag key=
"
value
"
/>
'
)
# 6
subelement3
=
copy
.
copy
(
subelement
)
element
[
0
:
0
]
=
[
subelement
,
subelement2
,
subelement3
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment