Commit bbb09375 authored by Benjamin Peterson's avatar Benjamin Peterson

use .format and fix a bug

parent ab1fb9f7
...@@ -133,7 +133,7 @@ class TestStdlibRemovals(unittest.TestCase): ...@@ -133,7 +133,7 @@ class TestStdlibRemovals(unittest.TestCase):
'ihooks', 'mhlib') 'ihooks', 'mhlib')
inclusive_platforms = {'irix' : ('pure',), inclusive_platforms = {'irix' : ('pure',),
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology', 'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
'icglue', 'Nav', 'MacOS', 'aepack', 'aetools' 'icglue', 'Nav', 'MacOS', 'aepack', 'aetools',
'aetypes', 'applesingle', 'appletrawmain', 'aetypes', 'applesingle', 'appletrawmain',
'appletrunner', 'argvemulator', 'bgenlocations', 'appletrunner', 'argvemulator', 'bgenlocations',
'EasyDialogs', 'macerrors', 'macostools', 'EasyDialogs', 'macerrors', 'macostools',
...@@ -162,11 +162,11 @@ class TestStdlibRemovals(unittest.TestCase): ...@@ -162,11 +162,11 @@ class TestStdlibRemovals(unittest.TestCase):
% module_name) % module_name)
except ImportError: except ImportError:
if not optional: if not optional:
self.fail("Non-optional module %s raised an " self.fail("Non-optional module {0} raised an "
"ImportError." % module_name) "ImportError.".format(module_name))
else: else:
self.fail("DeprecationWarning not raised for %s" % self.fail("DeprecationWarning not raised for {0}"
module_name) .format(module_name))
def test_platform_independent_removals(self): def test_platform_independent_removals(self):
# Make sure that the modules that are available on all platforms raise # Make sure that the modules that are available on all platforms raise
......
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