Kaydet (Commit) 8bb2d5d1 authored tarafından Hirokazu Yamamoto's avatar Hirokazu Yamamoto

assertRaises can't be used as a context manager in 2.6.

üst e38b0a8e
......@@ -347,8 +347,7 @@ class WarnTests(unittest.TestCase):
return ("A bad formatted string %(err)" %
{"err" : "there is no %(err)s"})
with self.assertRaises(ValueError):
self.module.warn(BadStrWarning())
self.assertRaises(ValueError, self.module.warn, BadStrWarning())
class CWarnTests(BaseTest, WarnTests):
......
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