[Python-checkins] cpython (merge 3.4 -> default): Close issue #22895: fix test failure introduced by the fix for issue #22462.

antoine.pitrou python-checkins at python.org
Sat Nov 29 15:56:48 CET 2014


https://hg.python.org/cpython/rev/4990157343c6
changeset:   93656:4990157343c6
parent:      93654:bd97eab25c70
parent:      93655:e4b986350feb
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sat Nov 29 15:56:38 2014 +0100
summary:
  Close issue #22895: fix test failure introduced by the fix for issue #22462.

files:
  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
--- 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 @@
                                        "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:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list