diff options
| author | Christian Heimes <christian@python.org> | 2022-03-22 12:04:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-22 03:04:36 -0700 |
| commit | deeaac49e267285158264643799624623f4a7b29 (patch) | |
| tree | 27f409d7d43cf169451aa892a2363f1cac85f7df /Lib/unittest/test/test_runner.py | |
| parent | a25a985535ccbb7df8caddc0017550ff4eae5855 (diff) | |
| download | cpython-git-deeaac49e267285158264643799624623f4a7b29.tar.gz | |
bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986)
- Add requires_fork and requires_subprocess to more tests
- Skip extension import tests if dlopen is not available
- Don't assume that _testcapi is a shared extension
- Skip a lot of socket tests that don't work on Emscripten
- Skip mmap tests, mmap emulation is incomplete
- venv does not work yet
- Cannot get libc from executable
The "entire" test suite is now passing on Emscripten with EMSDK from git head (91 suites are skipped).
Diffstat (limited to 'Lib/unittest/test/test_runner.py')
| -rw-r--r-- | Lib/unittest/test/test_runner.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/unittest/test/test_runner.py b/Lib/unittest/test/test_runner.py index c487e9ec4e..18062ae5a5 100644 --- a/Lib/unittest/test/test_runner.py +++ b/Lib/unittest/test/test_runner.py @@ -3,6 +3,7 @@ import os import sys import pickle import subprocess +from test import support import unittest from unittest.case import _Outcome @@ -1139,6 +1140,7 @@ class Test_TextTestRunner(unittest.TestCase): expectedresult = (runner.stream, DESCRIPTIONS, VERBOSITY) self.assertEqual(runner._makeResult(), expectedresult) + @support.requires_subprocess() def test_warnings(self): """ Check that warnings argument of TextTestRunner correctly affects the |
