diff options
author | Éric Araujo <merwok@netwok.org> | 2010-11-06 02:44:43 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2010-11-06 02:44:43 (GMT) |
commit | 70ec44a7739e67dbdaa8ab9b0a59a9444153112a (patch) | |
tree | 5d49959adafdacd5abc7431271dc8d95f253e431 /Lib/distutils/tests/test_cmd.py | |
parent | 1c5054996fcb7af6831eb1fea2df3678fb23e986 (diff) | |
download | cpython-70ec44a7739e67dbdaa8ab9b0a59a9444153112a.zip cpython-70ec44a7739e67dbdaa8ab9b0a59a9444153112a.tar.gz cpython-70ec44a7739e67dbdaa8ab9b0a59a9444153112a.tar.bz2 |
Make sure each test can be run standalone (./python Lib/distutils/tests/x.py)
Diffstat (limited to 'Lib/distutils/tests/test_cmd.py')
-rw-r--r-- | Lib/distutils/tests/test_cmd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_cmd.py b/Lib/distutils/tests/test_cmd.py index 55ae421..969f82b 100644 --- a/Lib/distutils/tests/test_cmd.py +++ b/Lib/distutils/tests/test_cmd.py @@ -1,7 +1,7 @@ """Tests for distutils.cmd.""" import unittest import os -from test.support import captured_stdout +from test.support import captured_stdout, run_unittest from distutils.cmd import Command from distutils.dist import Distribution @@ -99,7 +99,7 @@ class CommandTestCase(unittest.TestCase): def test_ensure_dirname(self): cmd = self.cmd - cmd.option1 = os.path.dirname(__file__) + cmd.option1 = os.path.dirname(__file__) or os.curdir cmd.ensure_dirname('option1') cmd.option2 = 'xxx' self.assertRaises(DistutilsOptionError, cmd.ensure_dirname, 'option2') @@ -124,4 +124,4 @@ def test_suite(): return unittest.makeSuite(CommandTestCase) if __name__ == '__main__': - test_support.run_unittest(test_suite()) + run_unittest(test_suite()) |