]> git.pld-linux.org Git - packages/python3.git/blame - python3-no_cmdline_tests.patch
- rel 2; rework options to avoid case when part of object files were built with one...
[packages/python3.git] / python3-no_cmdline_tests.patch
CommitLineData
fd3fc14e 1diff -Nur Python-3.3.1.orig/Lib/test/regrtest.py Python-3.3.1/Lib/test/regrtest.py
2--- Python-3.3.1.orig/Lib/test/regrtest.py 2013-04-06 08:41:41.000000000 +0100
3+++ Python-3.3.1/Lib/test/regrtest.py 2013-04-07 19:39:23.432490962 +0100
4@@ -243,7 +243,7 @@
cd7dc766
JK
5
6 from test import support
7
8-RESOURCE_NAMES = ('audio', 'curses', 'largefile', 'network',
9+RESOURCE_NAMES = ('audio', 'curses', 'largefile', 'network', 'cmdline',
10 'decimal', 'cpu', 'subprocess', 'urlfetch', 'gui')
11
12 TEMPDIR = os.path.abspath(tempfile.gettempdir())
fd3fc14e 13diff -Nur Python-3.3.1.orig/Lib/test/test_compileall.py Python-3.3.1/Lib/test/test_compileall.py
14--- Python-3.3.1.orig/Lib/test/test_compileall.py 2013-04-06 08:41:41.000000000 +0100
15+++ Python-3.3.1/Lib/test/test_compileall.py 2013-04-07 19:39:23.449157629 +0100
cd7dc766
JK
16@@ -130,7 +130,7 @@
17 finally:
18 sys.stdout = orig_stdout
19
20-
21+@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
22 class CommandLineTests(unittest.TestCase):
23 """Test compileall's CLI."""
24
fd3fc14e 25diff -Nur Python-3.3.1.orig/Lib/test/test_warnings.py Python-3.3.1/Lib/test/test_warnings.py
26--- Python-3.3.1.orig/Lib/test/test_warnings.py 2013-04-06 08:41:46.000000000 +0100
27+++ Python-3.3.1/Lib/test/test_warnings.py 2013-04-07 19:41:25.529164545 +0100
28@@ -717,6 +717,7 @@
cd7dc766
JK
29 module = py_warnings
30
31
32+@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
33 class EnvironmentVariableTests(BaseTest):
34
35 def test_single_warning(self):
fd3fc14e 36@@ -762,14 +763,17 @@
cd7dc766
JK
37 "['ignore:DeprecaciónWarning']".encode('utf-8'))
38 self.assertEqual(p.wait(), 0)
39
40+@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
fd3fc14e 41 class CEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
cd7dc766
JK
42 module = c_warnings
43
44+@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
fd3fc14e 45 class PyEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
cd7dc766
JK
46 module = py_warnings
47
48
49 class BootstrapTest(unittest.TestCase):
50+ @unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
51 def test_issue_8766(self):
52 # "import encodings" emits a warning whereas the warnings is not loaded
53 # or not completely loaded (warnings imports indirectly encodings by
This page took 0.026452 seconds and 4 git commands to generate.