forked from pld-linux/python3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython3-no_cmdline_tests.patch
More file actions
53 lines (41 loc) · 2.35 KB
/
python3-no_cmdline_tests.patch
File metadata and controls
53 lines (41 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff -Nur Python-3.3.1.orig/Lib/test/regrtest.py Python-3.3.1/Lib/test/regrtest.py
--- Python-3.3.1.orig/Lib/test/regrtest.py 2013-04-06 08:41:41.000000000 +0100
+++ Python-3.3.1/Lib/test/regrtest.py 2013-04-07 19:39:23.432490962 +0100
@@ -243,7 +243,7 @@
from test import support
-RESOURCE_NAMES = ('audio', 'curses', 'largefile', 'network',
+RESOURCE_NAMES = ('audio', 'curses', 'largefile', 'network', 'cmdline',
'decimal', 'cpu', 'subprocess', 'urlfetch', 'gui')
TEMPDIR = os.path.abspath(tempfile.gettempdir())
diff -Nur Python-3.3.1.orig/Lib/test/test_compileall.py Python-3.3.1/Lib/test/test_compileall.py
--- Python-3.3.1.orig/Lib/test/test_compileall.py 2013-04-06 08:41:41.000000000 +0100
+++ Python-3.3.1/Lib/test/test_compileall.py 2013-04-07 19:39:23.449157629 +0100
@@ -130,7 +130,7 @@
finally:
sys.stdout = orig_stdout
-
+@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
class CommandLineTests(unittest.TestCase):
"""Test compileall's CLI."""
diff -Nur Python-3.3.1.orig/Lib/test/test_warnings.py Python-3.3.1/Lib/test/test_warnings.py
--- Python-3.3.1.orig/Lib/test/test_warnings.py 2013-04-06 08:41:46.000000000 +0100
+++ Python-3.3.1/Lib/test/test_warnings.py 2013-04-07 19:41:25.529164545 +0100
@@ -717,6 +717,7 @@
module = py_warnings
+@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
class EnvironmentVariableTests(BaseTest):
def test_single_warning(self):
@@ -762,14 +763,17 @@
"['ignore:DeprecaciónWarning']".encode('utf-8'))
self.assertEqual(p.wait(), 0)
+@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
class CEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
module = c_warnings
+@unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
class PyEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
module = py_warnings
class BootstrapTest(unittest.TestCase):
+ @unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
def test_issue_8766(self):
# "import encodings" emits a warning whereas the warnings is not loaded
# or not completely loaded (warnings imports indirectly encodings by