mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40086: Update/fix test_etree test case in test_typing (GH-19189)
This commit is contained in:
parent
6467134307
commit
34b0598295
1 changed files with 2 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue