From: Jason R. Coombs Date: Sat, 16 Nov 2013 00:35:05 +0000 (-0500) Subject: Use preferred assertEqual form. Correct indentation. X-Git-Tag: v3.4.0b1~248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75c40aed55b1fe5482da4ae36e4cde52cc3f9cc1;p=thirdparty%2FPython%2Fcpython.git Use preferred assertEqual form. Correct indentation. --- diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py index 280b9bca907a..164586b7846c 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()