summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2011-11-23 13:50:55 +0100
committer?ric Araujo <merwok@netwok.org>2011-11-23 13:50:55 +0100
commitaeefa8b74658a44d5d9c7053d7f1355b13b7e3a8 (patch)
tree3a51f48b51eb32efd221099b0a6460213d8218e5
parentbb11fef9c016c68e89b8a83f1a95206859291d8a (diff)
downloaddisutils2-aeefa8b74658a44d5d9c7053d7f1355b13b7e3a8.tar.gz
Don?t display skip messages for tests that we?ll never fix
-rw-r--r--distutils2/_backport/tests/test_shutil.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/distutils2/_backport/tests/test_shutil.py b/distutils2/_backport/tests/test_shutil.py
index b058d67..a857f30 100644
--- a/distutils2/_backport/tests/test_shutil.py
+++ b/distutils2/_backport/tests/test_shutil.py
@@ -917,8 +917,9 @@ class TestCopyFile(unittest.TestCase):
self.assertRaises(IOError, shutil.copyfile, 'srcfile', 'destfile')
- @unittest.skip("can't use the with statement and support 2.4")
- def test_w_dest_open_fails(self):
+ # can't test usage of the with statement and support 2.4, so this
+ # test is renamed to disable it
+ def _test_w_dest_open_fails(self):
srcfile = self.Faux()
@@ -937,8 +938,8 @@ class TestCopyFile(unittest.TestCase):
self.assertEqual(srcfile._exited_with[1].args,
('Cannot open "destfile"',))
- @unittest.skip("can't use the with statement and support 2.4")
- def test_w_dest_close_fails(self):
+ # see above
+ def _test_w_dest_close_fails(self):
srcfile = self.Faux()
destfile = self.Faux(True)
@@ -960,8 +961,8 @@ class TestCopyFile(unittest.TestCase):
self.assertEqual(srcfile._exited_with[1].args,
('Cannot close',))
- @unittest.skip("can't use the with statement and support 2.4")
- def test_w_source_close_fails(self):
+ # see above
+ def _test_w_source_close_fails(self):
srcfile = self.Faux(True)
destfile = self.Faux()