[Python-checkins] (no subject)
Furkan Önder
webhook-mailer at python.org
Sat Mar 28 08:32:40 EDT 2020
To: python-checkins at python.org
Subject: bpo-40086: Update/fix test_etree test case in test_typing (GH-19189)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
https://github.com/python/cpython/commit/34b0598295284e3ff6cedf5c05e159ce1fa5=
4d60
commit: 34b0598295284e3ff6cedf5c05e159ce1fa54d60
branch: master
author: Furkan =C3=96nder <furkantahaonder at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-03-28T12:32:36Z
summary:
bpo-40086: Update/fix test_etree test case in test_typing (GH-19189)
files:
M Lib/test/test_typing.py
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index 6b0a905048cea..8d6262b9c1b02 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
=20
def Elem(*args):
More information about the Python-checkins
mailing list