aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_pyexpat.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pyexpat.py')
-rw-r--r--Lib/test/test_pyexpat.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py
index b2b4dea0605..6e578458a25 100644
--- a/Lib/test/test_pyexpat.py
+++ b/Lib/test/test_pyexpat.py
@@ -12,7 +12,7 @@ import traceback
from xml.parsers import expat
from xml.parsers.expat import errors
-from test.support import sortdict
+from test.support import sortdict, is_emscripten
class SetAttributeTest(unittest.TestCase):
@@ -466,7 +466,10 @@ class HandlerExceptionTest(unittest.TestCase):
"pyexpat.c", "StartElement")
self.check_traceback_entry(entries[2],
"test_pyexpat.py", "StartElementHandler")
- if sysconfig.is_python_build() and not (sys.platform == 'win32' and platform.machine() == 'ARM'):
+ if (sysconfig.is_python_build()
+ and not (sys.platform == 'win32' and platform.machine() == 'ARM')
+ and not is_emscripten
+ ):
self.assertIn('call_with_frame("StartElement"', entries[1][3])