summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_source_encoding.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-25 07:09:06 (GMT)
committerGitHub <noreply@github.com>2022-01-25 07:09:06 (GMT)
commit8464fbc42ecc9ce504faac499711dcdc6eedef16 (patch)
tree1992e76c83da4720bc1dbc95901a417e0a4781e3 /Lib/test/test_source_encoding.py
parente1abffca45b60729c460e3e2ad50c8c1946cfd4e (diff)
downloadcpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.zip
cpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.tar.gz
cpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.tar.bz2
bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)
Diffstat (limited to 'Lib/test/test_source_encoding.py')
-rw-r--r--Lib/test/test_source_encoding.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_source_encoding.py b/Lib/test/test_source_encoding.py
index a0cb605..a0375fd 100644
--- a/Lib/test/test_source_encoding.py
+++ b/Lib/test/test_source_encoding.py
@@ -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__),