diff options
Diffstat (limited to 'Lib/test/test_nis.py')
-rw-r--r-- | Lib/test/test_nis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py index 590868f0108..55dd32c7e01 100644 --- a/Lib/test/test_nis.py +++ b/Lib/test/test_nis.py @@ -6,7 +6,7 @@ class NisTests(unittest.TestCase): def test_maps(self): try: maps = nis.maps() - except nis.error, msg: + except nis.error as msg: # NIS is probably not active, so this test isn't useful if verbose: self.fail("(failing because of verbose mode) %s" % msg) |