diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-11-29 14:56:07 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-11-29 14:56:07 (GMT) |
commit | 2b3b95be6221a30f00fa110cb1a9a1f2aeb684c6 (patch) | |
tree | 3e5397b5a5b571e4541ee5637fa0f44ab4b75e94 /Lib | |
parent | 153879075ffa2a66a98bebf2dbc9a8c60d2a0af0 (diff) | |
download | cpython-2b3b95be6221a30f00fa110cb1a9a1f2aeb684c6.zip cpython-2b3b95be6221a30f00fa110cb1a9a1f2aeb684c6.tar.gz cpython-2b3b95be6221a30f00fa110cb1a9a1f2aeb684c6.tar.bz2 |
Close issue #22895: fix test failure introduced by the fix for issue #22462.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_pyexpat.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index 26f1961..c233bc1 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py @@ -3,6 +3,7 @@ from io import BytesIO import os +import sysconfig import unittest import traceback @@ -444,7 +445,8 @@ class HandlerExceptionTest(unittest.TestCase): "pyexpat.c", "StartElement") self.check_traceback_entry(entries[2], "test_pyexpat.py", "StartElementHandler") - self.assertIn('call_with_frame("StartElement"', entries[1][3]) + if sysconfig.is_python_build(): + self.assertIn('call_with_frame("StartElement"', entries[1][3]) # Test Current* members: |