Skip to content

Commit 99bb502

Browse files
committed
skip tests failing on emscripten
1 parent bb08739 commit 99bb502

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Lib/test/test_isinstance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ def __bases__(self):
307307

308308
self.assertEqual(True, issubclass(B(), int))
309309

310+
@support.skip_emscripten_stack_overflow()
311+
@support.skip_wasi_stack_overflow()
310312
def test_infinite_recursion_in_bases(self):
311313
class X:
312314
@property

Lib/test/test_pyrepl/test_unix_console.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import unittest
88
from functools import partial
99
from test.support import force_color, os_helper, force_not_colorized_test_class
10-
from test.support import threading_helper
10+
from test.support import threading_helper, is_emscripten
1111

1212
from unittest import TestCase
1313
from unittest.mock import MagicMock, call, patch, ANY, Mock
@@ -349,6 +349,7 @@ def same_console(events):
349349
console.restore()
350350
con.restore()
351351

352+
@unittest.skipIf(is_emscripten, "Causes TypeError: Cannot read properties of undefined (reading '0')")
352353
def test_getheightwidth_with_invalid_environ(self, _os_write):
353354
# gh-128636
354355
console = UnixConsole(term="xterm")
@@ -384,6 +385,7 @@ def test_restore_in_thread(self, _os_write):
384385
@unittest.skipIf(sys.platform == "win32", "No Unix console on Windows")
385386
class TestUnixConsoleEIOHandling(TestCase):
386387

388+
@unittest.skipIf(is_emscripten, "Causes TypeError: Cannot read properties of undefined (reading '0')")
387389
@patch('_pyrepl.unix_console.tcsetattr')
388390
@patch('_pyrepl.unix_console.tcgetattr')
389391
def test_eio_error_handling_in_restore(self, mock_tcgetattr, mock_tcsetattr):

0 commit comments

Comments
 (0)