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):
5 sys.stdout = orig_stdout
8 +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
9 class CommandLineTestsBase:
10 """Test compileall's CLI."""
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
19 +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
20 class EnvironmentVariableTests(BaseTest):
22 def test_single_warning(self):
23 @@ -1206,14 +1207,17 @@ class EnvironmentVariableTests(BaseTest)
25 self.assertEqual(stdout, str([PYTHONWARNINGS]).encode())
27 +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
28 class CEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
31 +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
32 class PyEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
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