bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)

This commit is contained in:
Christian Heimes 2022-01-25 09:09:06 +02:00 committed by GitHub
parent e1abffca45
commit 8464fbc42e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 139 additions and 23 deletions

View file

@ -1,7 +1,7 @@
# -*- coding: koi8-r -*-
import unittest
from test.support import script_helper, captured_stdout
from test.support import script_helper, captured_stdout, requires_subprocess
from test.support.os_helper import TESTFN, unlink, rmtree
from test.support.import_helper import unload
import importlib
@ -65,6 +65,7 @@ class MiscSourceEncodingTest(unittest.TestCase):
# two bytes in common with the UTF-8 BOM
self.assertRaises(SyntaxError, eval, b'\xef\xbb\x20')
@requires_subprocess()
def test_20731(self):
sub = subprocess.Popen([sys.executable,
os.path.join(os.path.dirname(__file__),