Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b3b95b

Browse files
committed
Close issue #22895: fix test failure introduced by the fix for issue #22462.
1 parent 1538790 commit 2b3b95b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_pyexpat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from io import BytesIO
55
import os
6+
import sysconfig
67
import unittest
78
import traceback
89

@@ -444,7 +445,8 @@ def test_exception(self):
444445
"pyexpat.c", "StartElement")
445446
self.check_traceback_entry(entries[2],
446447
"test_pyexpat.py", "StartElementHandler")
447-
self.assertIn('call_with_frame("StartElement"', entries[1][3])
448+
if sysconfig.is_python_build():
449+
self.assertIn('call_with_frame("StartElement"', entries[1][3])
448450

449451

450452
# Test Current* members:

0 commit comments

Comments
 (0)