]>
Commit | Line | Data |
---|---|---|
b10abc3a AM |
1 | diff -urNp -x '*.orig' Python-3.9.2.org/Lib/test/test_compileall.py Python-3.9.2/Lib/test/test_compileall.py |
2 | --- Python-3.9.2.org/Lib/test/test_compileall.py 2021-02-19 13:31:44.000000000 +0100 | |
3 | +++ Python-3.9.2/Lib/test/test_compileall.py 2021-02-25 18:40:29.876560976 +0100 | |
4 | @@ -419,6 +419,7 @@ class EncodingTest(unittest.TestCase): | |
cd7dc766 JK |
5 | sys.stdout = orig_stdout |
6 | ||
9b97d583 | 7 | |
cd7dc766 | 8 | +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled") |
9b97d583 | 9 | class CommandLineTestsBase: |
cd7dc766 JK |
10 | """Test compileall's CLI.""" |
11 | ||
b10abc3a AM |
12 | diff -urNp -x '*.orig' Python-3.9.2.org/Lib/test/test_warnings/__init__.py Python-3.9.2/Lib/test/test_warnings/__init__.py |
13 | --- Python-3.9.2.org/Lib/test/test_warnings/__init__.py 2021-02-19 13:31:44.000000000 +0100 | |
14 | +++ Python-3.9.2/Lib/test/test_warnings/__init__.py 2021-02-25 18:40:29.876560976 +0100 | |
15 | @@ -1126,6 +1126,7 @@ class PyCatchWarningTests(CatchWarningTe | |
cd7dc766 JK |
16 | module = py_warnings |
17 | ||
18 | ||
19 | +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled") | |
20 | class EnvironmentVariableTests(BaseTest): | |
21 | ||
22 | def test_single_warning(self): | |
b10abc3a AM |
23 | @@ -1206,14 +1207,17 @@ class EnvironmentVariableTests(BaseTest) |
24 | PYTHONDEVMODE="") | |
25 | self.assertEqual(stdout, str([PYTHONWARNINGS]).encode()) | |
cd7dc766 JK |
26 | |
27 | +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled") | |
fd3fc14e | 28 | class CEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase): |
cd7dc766 JK |
29 | module = c_warnings |
30 | ||
31 | +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled") | |
fd3fc14e | 32 | class PyEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase): |
cd7dc766 JK |
33 | module = py_warnings |
34 | ||
35 | ||
36 | class BootstrapTest(unittest.TestCase): | |
37 | + @unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled") | |
38 | def test_issue_8766(self): | |
39 | # "import encodings" emits a warning whereas the warnings is not loaded | |
40 | # or not completely loaded (warnings imports indirectly encodings by |