diff options
author | Éric Araujo <merwok@netwok.org> | 2011-11-02 17:05:41 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-11-02 17:05:41 (GMT) |
commit | af2ffd75cf9900963d970657c7db5e3362f4548a (patch) | |
tree | c11891649d57d69c6ca293590607674bbf25729b /Lib/distutils/tests/test_sdist.py | |
parent | 91d5193b3ad208f359107512ff12a416c9dbec3b (diff) | |
download | cpython-af2ffd75cf9900963d970657c7db5e3362f4548a.zip cpython-af2ffd75cf9900963d970657c7db5e3362f4548a.tar.gz cpython-af2ffd75cf9900963d970657c7db5e3362f4548a.tar.bz2 |
Cleanups in distutils tests.
- Actually check the contents of the file created by bdist_dumb.
- Don’t use “RECORD” as filename for non-PEP 376 record file
- Don’t start method name with “_test”, it smells like a disabled test
method instead of an helper method
- Fix some idioms (assertIn, addCleanup)
Diffstat (limited to 'Lib/distutils/tests/test_sdist.py')
-rw-r--r-- | Lib/distutils/tests/test_sdist.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py index 529b4ef..d0d16b2 100644 --- a/Lib/distutils/tests/test_sdist.py +++ b/Lib/distutils/tests/test_sdist.py @@ -288,7 +288,7 @@ class SDistTestCase(PyPIRCCommandTestCase): # the following tests make sure there is a nice error message instead # of a traceback when parsing an invalid manifest template - def _test_template(self, content): + def _check_template(self, content): dist, cmd = self.get_cmd() os.chdir(self.tmp_dir) self.write_file('MANIFEST.in', content) @@ -299,17 +299,17 @@ class SDistTestCase(PyPIRCCommandTestCase): self.assertEqual(len(warnings), 1) def test_invalid_template_unknown_command(self): - self._test_template('taunt knights *') + self._check_template('taunt knights *') def test_invalid_template_wrong_arguments(self): # this manifest command takes one argument - self._test_template('prune') + self._check_template('prune') @unittest.skipIf(os.name != 'nt', 'test relevant for Windows only') def test_invalid_template_wrong_path(self): # on Windows, trailing slashes are not allowed # this used to crash instead of raising a warning: #8286 - self._test_template('include examples/') + self._check_template('include examples/') @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run') def test_get_file_list(self): |