[Python-checkins] cpython (3.4): 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/e4b986350feb
changeset:   93655:e4b986350feb
branch:      3.4
parent:      93653:21257f916668
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sat Nov 29 15:56:07 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