Commit ccce5b21 authored by Jason R. Coombs's avatar Jason R. Coombs

Use preferred assertEqual form. Correct indentation.

parent 303e2b0c
...@@ -437,7 +437,7 @@ class SDistTestCase(PyPIRCCommandTestCase): ...@@ -437,7 +437,7 @@ class SDistTestCase(PyPIRCCommandTestCase):
# check if tar and gzip are installed # check if tar and gzip are installed
if (find_executable('tar') is None or if (find_executable('tar') is None or
find_executable('gzip') is None): find_executable('gzip') is None):
return return
# now building a sdist # now building a sdist
...@@ -455,8 +455,8 @@ class SDistTestCase(PyPIRCCommandTestCase): ...@@ -455,8 +455,8 @@ class SDistTestCase(PyPIRCCommandTestCase):
archive = tarfile.open(archive_name) archive = tarfile.open(archive_name)
try: try:
for member in archive.getmembers(): for member in archive.getmembers():
self.assertEquals(member.uid, 0) self.assertEqual(member.uid, 0)
self.assertEquals(member.gid, 0) self.assertEqual(member.gid, 0)
finally: finally:
archive.close() archive.close()
...@@ -477,7 +477,7 @@ class SDistTestCase(PyPIRCCommandTestCase): ...@@ -477,7 +477,7 @@ class SDistTestCase(PyPIRCCommandTestCase):
# rights (see #7408) # rights (see #7408)
try: try:
for member in archive.getmembers(): for member in archive.getmembers():
self.assertEquals(member.uid, os.getuid()) self.assertEqual(member.uid, os.getuid())
finally: finally:
archive.close() archive.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment