summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_typing.py
diff options
context:
space:
mode:
authorFurkan Önder <furkantahaonder@gmail.com>2020-03-28 12:32:36 (GMT)
committerGitHub <noreply@github.com>2020-03-28 12:32:36 (GMT)
commit34b0598295284e3ff6cedf5c05e159ce1fa54d60 (patch)
treec0b7aeee790f2bed8ca86e2ebe73741f89d66770 /Lib/test/test_typing.py
parent6467134307cf01802c9f1c0384d8acbebecbd400 (diff)
downloadcpython-34b0598295284e3ff6cedf5c05e159ce1fa54d60.zip
cpython-34b0598295284e3ff6cedf5c05e159ce1fa54d60.tar.gz
cpython-34b0598295284e3ff6cedf5c05e159ce1fa54d60.tar.bz2
bpo-40086: Update/fix test_etree test case in test_typing (GH-19189)
Diffstat (limited to 'Lib/test/test_typing.py')
-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):