]> git.pld-linux.org Git - packages/python3.git/blob - python3-no_cmdline_tests.patch
- rel 2; rediff patches
[packages/python3.git] / python3-no_cmdline_tests.patch
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
6  
7  
8 +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
9  class CommandLineTestsBase:
10      """Test compileall's CLI."""
11  
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
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):
23 @@ -1206,14 +1207,17 @@ class EnvironmentVariableTests(BaseTest)
24              PYTHONDEVMODE="")
25          self.assertEqual(stdout, str([PYTHONWARNINGS]).encode())
26  
27 +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
28  class CEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
29      module = c_warnings
30  
31 +@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
32  class PyEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
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
This page took 0.031239 seconds and 3 git commands to generate.