From b160fba2c0cbad389abc1bdbc94c82c1a26edfc9 Mon Sep 17 00:00:00 2001 From: ?ric Araujo Date: Sat, 12 Nov 2011 00:33:44 +0100 Subject: Clean up some idioms in tests. - Use os.makedirs (I had forgotten about it!) - Let TempdirManager.write_file call os.path.join for us - Let TempdirManager.tearDown go back to the previous working directory for us - Use a skip instead of hiding a method with an underscore - Reset the finalized attribute of command objects before calling ensure_finalized a second time, so that it?s not a no-op - Address pyflakes warnings --- distutils2/tests/test_command_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'distutils2/tests/test_command_test.py') diff --git a/distutils2/tests/test_command_test.py b/distutils2/tests/test_command_test.py index 2b832cb..a5748fe 100644 --- a/distutils2/tests/test_command_test.py +++ b/distutils2/tests/test_command_test.py @@ -140,7 +140,8 @@ class TestTest(TempdirManager, cmd.run() self.assertEqual(['build has run'], record) - def _test_works_with_2to3(self): + @unittest.skip('needs to be written') + def test_works_with_2to3(self): pass def test_checks_requires(self): -- cgit v1.2.1