[test] don't use obsolete skip() method, use skipTest() instead
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 23 Dec 2015 16:18:39 +0100
changeset 1856 fedb66f3233c
parent 1855 9af15350aaef
child 1858 62473423eebc
[test] don't use obsolete skip() method, use skipTest() instead
test/data/testcase_pkg/tests/unittest_mixed.py
test/data/testcase_pkg/tests/unittest_skip.py
--- a/test/data/testcase_pkg/tests/unittest_mixed.py	Wed Dec 23 16:02:27 2015 +0100
+++ b/test/data/testcase_pkg/tests/unittest_mixed.py	Wed Dec 23 16:18:39 2015 +0100
@@ -6,9 +6,9 @@
     def test_ok2(self):
         pass
     def test_skip(self):
-        self.skip("la mer qu'on voit dancer")
+        self.skipTest("la mer qu'on voit dancer")
     def test_skip2(self):
-        self.skip("Hast du etwas Zeit fur mich?")
+        self.skipTest("Hast du etwas Zeit fur mich?")
 
     def test_fail_0(self):
         self.assertEquals(1337, 0)
--- a/test/data/testcase_pkg/tests/unittest_skip.py	Wed Dec 23 16:02:27 2015 +0100
+++ b/test/data/testcase_pkg/tests/unittest_skip.py	Wed Dec 23 16:18:39 2015 +0100
@@ -2,7 +2,7 @@
 
 class DummyTest(TestCase):
     def runTest(self):
-        self.skip("I'm singing in the rain")
+        self.skipTest("I'm singing in the rain")
 
 
 if __name__ == '__main__':