diff options
Diffstat (limited to 'Lib/test/test_commands.py')
-rw-r--r-- | Lib/test/test_commands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_commands.py b/Lib/test/test_commands.py index 2d10dea3a3..70cfb58074 100644 --- a/Lib/test/test_commands.py +++ b/Lib/test/test_commands.py @@ -24,8 +24,8 @@ if os.name != 'posix': class CommandTests(unittest.TestCase): def test_getoutput(self): - self.assertEquals(commands.getoutput('echo xyzzy'), 'xyzzy') - self.assertEquals(commands.getstatusoutput('echo xyzzy'), (0, 'xyzzy')) + self.assertEqual(commands.getoutput('echo xyzzy'), 'xyzzy') + self.assertEqual(commands.getstatusoutput('echo xyzzy'), (0, 'xyzzy')) # we use mkdtemp in the next line to create an empty directory # under our exclusive control; from that, we can invent a pathname @@ -36,7 +36,7 @@ class CommandTests(unittest.TestCase): name = os.path.join(dir, "foo") status, output = commands.getstatusoutput('cat ' + name) - self.assertNotEquals(status, 0) + self.assertNotEqual(status, 0) finally: if dir is not None: os.rmdir(dir) |