1 |
idella4 13/03/02 12:40:32 |
2 |
|
3 |
Added: nose-1.2.1-skiptest.patch |
4 |
Log: |
5 |
Added skiptest.patch for 1.2.1 versions skipping tests set to fail, wrt Bug #455104 |
6 |
|
7 |
(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/nose/files/nose-1.2.1-skiptest.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/nose/files/nose-1.2.1-skiptest.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/nose/files/nose-1.2.1-skiptest.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: nose-1.2.1-skiptest.patch |
16 |
=================================================================== |
17 |
Tests are set to compulsory fail, cannot be set to expectedFailure |
18 |
diff -ur nose-1.2.1.orig/functional_tests/test_program.py nose-1.2.1/functional_tests/test_program.py |
19 |
--- functional_tests/test_program.py 2011-12-14 22:01:38.000000000 +0800 |
20 |
+++ functional_tests/test_program.py 2013-03-02 14:50:28.628004408 +0800 |
21 |
@@ -1,5 +1,8 @@ |
22 |
-import os |
23 |
-import unittest |
24 |
+import os, sys |
25 |
+if sys.version_info[:2] == (2, 7) or hasattr(sys, 'pypy_version_info'): |
26 |
+ import unittest |
27 |
+else: |
28 |
+ import unittest2 as unittest |
29 |
from cStringIO import StringIO |
30 |
from nose import SkipTest |
31 |
from nose.core import TestProgram |
32 |
@@ -91,6 +91,7 @@ |
33 |
assert not res.errors |
34 |
assert not res.failures |
35 |
|
36 |
+ @unittest.skip("tests set to exit with compulsory fail, error") |
37 |
def test_run_support_twist(self): |
38 |
"""Collect and run tests in functional/support/twist |