8000 bpo-40086: Update/fix test_etree test case in test_typing (GH-19189) · python/cpython@34b0598 · GitHub
[go: up one dir, main page]

Skip to content

Commit 34b0598

Browse files
authored
bpo-40086: Update/fix test_etree test case in test_typing (GH-19189)
1 parent 6467134 commit 34b0598

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/test/test_typing.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,8 @@ def test_union_str_pattern(self):
361361
def test_etree(self):
362362
# See https://github.com/python/typing/issues/229
363363
# (Only relevant for Python 2.)
364-
try:
365-
from xml.etree.cElementTree import Element
366-
except ImportError:
367-
raise SkipTest("cElementTree not found")
364+
from xml.etree.ElementTree import Element
365+
368366
Union[Element, str] # Shouldn't crash
369367

370368
def Elem(*args):

0 commit comments

Comments
 (0)
0