packages: python3/python3-no_cmdline_tests.patch (NEW) - patch to skip test...
jajcus
jajcus at pld-linux.org
Fri Jul 15 15:10:19 CEST 2011
Author: jajcus Date: Fri Jul 15 13:10:19 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- patch to skip tests calling the python interpreter. They would not work with python not yet installed
---- Files affected:
packages/python3:
python3-no_cmdline_tests.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python3/python3-no_cmdline_tests.patch
diff -u /dev/null packages/python3/python3-no_cmdline_tests.patch:1.1
--- /dev/null Fri Jul 15 15:10:19 2011
+++ packages/python3/python3-no_cmdline_tests.patch Fri Jul 15 15:10:13 2011
@@ -0,0 +1,53 @@
+diff -dur -x '*~' Lib/test.orig//regrtest.py Lib/test//regrtest.py
+--- Lib/test.orig//regrtest.py 2011-07-09 08:58:49.000000000 +0200
++++ Lib/test//regrtest.py 2011-07-15 14:38:55.000000000 +0200
+@@ -216,7 +216,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 -dur -x '*~' Lib/test.orig//test_compileall.py Lib/test//test_compileall.py
+--- Lib/test.orig//test_compileall.py 2011-07-09 08:58:50.000000000 +0200
++++ Lib/test//test_compileall.py 2011-07-15 14:41:08.000000000 +0200
+@@ -130,7 +130,7 @@
+ finally:
+ sys.stdout = orig_stdout
+
+-
++ at unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
+ class CommandLineTests(unittest.TestCase):
+ """Test compileall's CLI."""
+
+diff -dur -x '*~' Lib/test.orig//test_warnings.py Lib/test//test_warnings.py
+--- Lib/test.orig//test_warnings.py 2011-07-09 08:58:51.000000000 +0200
++++ Lib/test//test_warnings.py 2011-07-15 14:44:11.000000000 +0200
+@@ -715,6 +715,7 @@
+ module = py_warnings
+
+
++ at unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
+ class EnvironmentVariableTests(BaseTest):
+
+ def test_single_warning(self):
+@@ -760,14 +761,17 @@
+ "['ignore:DeprecaciónWarning']".encode('utf-8'))
+ self.assertEqual(p.wait(), 0)
+
++ at unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
+ class CEnvironmentVariableTests(EnvironmentVariableTests):
+ module = c_warnings
+
++ at unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
+ class PyEnvironmentVariableTests(EnvironmentVariableTests):
+ 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
================================================================
More information about the pld-cvs-commit
mailing list