summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-11-29 14:56:38 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-11-29 14:56:38 (GMT)
commit3a9c68e608aca856da55eb5765173d3bf0a55ed2 (patch)
tree10e3169550d9d3980fc782895d8cbfb208275a1d
parentdf46e2a43bddcc5083b2f3d6071edbdaaa0abfac (diff)
parent2b3b95be6221a30f00fa110cb1a9a1f2aeb684c6 (diff)
downloadcpython-3a9c68e608aca856da55eb5765173d3bf0a55ed2.zip
cpython-3a9c68e608aca856da55eb5765173d3bf0a55ed2.tar.gz
cpython-3a9c68e608aca856da55eb5765173d3bf0a55ed2.tar.bz2
Close issue #22895: fix test failure introduced by the fix for issue #22462.
-rw-r--r--Lib/test/test_pyexpat.py4
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: