summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_typing.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index 6b0a905..8d6262b 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -361,10 +361,8 @@ class UnionTests(BaseTestCase):
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):