diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 6b0a905048cea3..8d6262b9c1b02b 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -361,10 +361,8 @@ def test_union_str_pattern(self): def test_etree(self): # See https://github.com/python/typing/issues/229 # (Only relevant for Python 2.) - try: - from xml.etree.cElementTree import Element - except ImportError: - raise SkipTest("cElementTree not found") + from xml.etree.ElementTree import Element + Union[Element, str] # Shouldn't crash def Elem(*args):