diff options
| author | ?ric Araujo <merwok@netwok.org> | 2011-11-12 07:33:45 +0100 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2011-11-12 07:33:45 +0100 |
| commit | ed71facf9298a2d12dc631f86e4ecdd33a117380 (patch) | |
| tree | e31993c8b5ca3878fc6142db3fb2fea458806827 /distutils2/tests/test_command_clean.py | |
| parent | c00356888d4cce280d33dd86c7349bc9279a430d (diff) | |
| parent | e65890db19e3b798752544632abd303625c4a7f7 (diff) | |
| download | disutils2-ed71facf9298a2d12dc631f86e4ecdd33a117380.tar.gz | |
Ye olde merge.
I broke test_mixin2to3 somehow; distutils2-default is okay and packaging too,
so I don?t see an obvious reason right now, I?ll investigate later.
Diffstat (limited to 'distutils2/tests/test_command_clean.py')
| -rw-r--r-- | distutils2/tests/test_command_clean.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/distutils2/tests/test_command_clean.py b/distutils2/tests/test_command_clean.py index 7b8effa..910628a 100644 --- a/distutils2/tests/test_command_clean.py +++ b/distutils2/tests/test_command_clean.py @@ -5,7 +5,8 @@ from distutils2.command.clean import clean from distutils2.tests import unittest, support -class cleanTestCase(support.TempdirManager, support.LoggingCatcher, +class CleanTestCase(support.TempdirManager, + support.LoggingCatcher, unittest.TestCase): def test_simple_run(self): @@ -23,7 +24,7 @@ class cleanTestCase(support.TempdirManager, support.LoggingCatcher, if name == 'build_base': continue for f in ('one', 'two', 'three'): - self.write_file(os.path.join(path, f)) + self.write_file((path, f)) # let's run the command cmd.all = True @@ -36,13 +37,11 @@ class cleanTestCase(support.TempdirManager, support.LoggingCatcher, '%r was not removed' % path) # let's run the command again (should spit warnings but succeed) - cmd.all = True - cmd.ensure_finalized() cmd.run() def test_suite(): - return unittest.makeSuite(cleanTestCase) + return unittest.makeSuite(CleanTestCase) if __name__ == "__main__": unittest.main(defaultTest="test_suite") |
