From 34b0598295284e3ff6cedf5c05e159ce1fa54d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20=C3=96nder?= Date: Sat, 28 Mar 2020 15:32:36 +0300 Subject: bpo-40086: Update/fix test_etree test case in test_typing (GH-19189) --- Lib/test/test_typing.py | 6 ++---- 1 file 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): -- cgit v0.12