Skip to content

Commit 1a6e42a

Browse files
committed
xml.etree.ElementTree stable after 3.9
1 parent 4502059 commit 1a6e42a

File tree

3 files changed

+3
-176
lines changed

3 files changed

+3
-176
lines changed

hypothesis-python/tests/ghostwriter/recorded/xml_etree_ElementTree_py38.txt

Lines changed: 0 additions & 164 deletions
This file was deleted.

hypothesis-python/tests/ghostwriter/test_expected_output.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -187,20 +187,11 @@ def divide(a: int, b: int) -> float:
187187
],
188188
),
189189
pytest.param(
190-
("xml_etree_ElementTree_py38", ghostwriter.magic(xml.etree.ElementTree)),
190+
("xml_etree_ElementTree", ghostwriter.magic(xml.etree.ElementTree)),
191191
marks=[
192192
pytest.mark.skipif(
193-
sys.version_info[:2] != (3, 8),
194-
reason="output generated with Python 3.8",
195-
)
196-
],
197-
),
198-
pytest.param(
199-
("xml_etree_ElementTree_py310", ghostwriter.magic(xml.etree.ElementTree)),
200-
marks=[
201-
pytest.mark.skipif(
202-
sys.version_info[:2] != (3, 10),
203-
reason="output generated with Python 3.10",
193+
sys.version_info[:2] not in [(3, 9), (3, 10)],
194+
reason="xml.etree.ElementTree.indent new in version 3.9",
204195
)
205196
],
206197
),

0 commit comments

Comments
 (0)