From: Antoine Pitrou Date: Sat, 29 Nov 2014 14:56:07 +0000 (+0100) Subject: Close issue #22895: fix test failure introduced by the fix for issue #22462. X-Git-Tag: v3.4.3rc1~289 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b3b95be6221a30f00fa110cb1a9a1f2aeb684c6;p=python Close issue #22895: fix test failure introduced by the fix for issue #22462. --- diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index 26f1961bd9..c233bc11e3 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: