[Python-modules-commits] r23542 - in packages/nose/trunk/debian/patches (disable-unstable-tests)

mitya57-guest at users.alioth.debian.org mitya57-guest at users.alioth.debian.org
Fri Feb 22 06:52:58 UTC 2013


    Date: Friday, February 22, 2013 @ 06:52:56
  Author: mitya57-guest
Revision: 23542

debian/patches/disable-unstable-tests: use nose.SkipTest
instead of unittest.SkipTest which is not available in 2.6

Modified:
  packages/nose/trunk/debian/patches/disable-unstable-tests

Modified: packages/nose/trunk/debian/patches/disable-unstable-tests
===================================================================
--- packages/nose/trunk/debian/patches/disable-unstable-tests	2013-02-22 06:43:59 UTC (rev 23541)
+++ packages/nose/trunk/debian/patches/disable-unstable-tests	2013-02-22 06:52:56 UTC (rev 23542)
@@ -1,15 +1,23 @@
 Description: Disable some unstable tests in multiprocessing module
 Author: Dmitry Shachnev <mitya57 at gmail.com>
 Forwarded: not-needed
-Last-Update: 2013-02-21
+Last-Update: 2013-02-22
 
 --- a/functional_tests/test_multiprocessing/test_concurrent_shared.py
 +++ b/functional_tests/test_multiprocessing/test_concurrent_shared.py
-@@ -22,6 +22,7 @@ class TestConcurrentShared(MPTestBase):
+@@ -1,6 +1,7 @@
+ import os
+ import sys
+ import unittest
++import nose
+ 
+ from test_multiprocessing import MPTestBase
+ 
+@@ -22,6 +23,7 @@ class TestConcurrentShared(MPTestBase):
          MPTestBase.setUp(self)
  
      def runTest(self):
-+        raise unittest.SkipTest('disabled in Debian')
++        raise nose.SkipTest('disabled in Debian')
          assert 'Ran 2 tests in 1.' in self.output, "make sure two tests use 1.x seconds (no more than 2 seconds)"
          assert str(self.output).strip().endswith('OK')
  
@@ -35,7 +43,7 @@
 +++ b/functional_tests/test_multiprocessing/test_process_timeout.py
 @@ -1,4 +1,5 @@
  import os
-+import unittest
++import nose
  
  from test_multiprocessing import MPTestBase
  
@@ -43,7 +51,7 @@
      suitepath = os.path.join(os.path.dirname(__file__), 'support', 'timeout.py')
  
      def runTest(self):
-+        raise unittest.SkipTest('Disabled in Debian')
++        raise nose.SkipTest('Disabled in Debian')
          assert "TimedOutException: 'timeout.test_timeout'" in self.output
          assert "Ran 2 tests in" in self.output
          assert "FAILED (errors=1)" in self.output




More information about the Python-modules-commits mailing list