diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-16 00:35:05 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-16 00:35:05 (GMT) |
commit | 75c40aed55b1fe5482da4ae36e4cde52cc3f9cc1 (patch) | |
tree | baf7049190396e6a0f83fd71e44e8a59b6c53b73 /Lib/distutils | |
parent | cb37641bb4970c27efabd4214abbce800bb3cb4c (diff) | |
download | cpython-75c40aed55b1fe5482da4ae36e4cde52cc3f9cc1.zip cpython-75c40aed55b1fe5482da4ae36e4cde52cc3f9cc1.tar.gz cpython-75c40aed55b1fe5482da4ae36e4cde52cc3f9cc1.tar.bz2 |
Use preferred assertEqual form. Correct indentation.
Diffstat (limited to 'Lib/distutils')
-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 280b9bc..164586b 100644 --- a/Lib/distutils/tests/test_sdist.py +++ b/Lib/distutils/tests/test_sdist.py @@ -437,7 +437,7 @@ class SDistTestCase(PyPIRCCommandTestCase): # check if tar and gzip are installed if (find_executable('tar') is None or - find_executable('gzip') is None): + find_executable('gzip') is None): return # now building a sdist @@ -455,8 +455,8 @@ class SDistTestCase(PyPIRCCommandTestCase): archive = tarfile.open(archive_name) try: for member in archive.getmembers(): - self.assertEquals(member.uid, 0) - self.assertEquals(member.gid, 0) + self.assertEqual(member.uid, 0) + self.assertEqual(member.gid, 0) finally: archive.close() @@ -477,7 +477,7 @@ class SDistTestCase(PyPIRCCommandTestCase): # rights (see #7408) try: for member in archive.getmembers(): - self.assertEquals(member.uid, os.getuid()) + self.assertEqual(member.uid, os.getuid()) finally: archive.close() |