changeset 32319 | 68c43a416585 |
parent 30342 | 318a24b52eeb |
child 36318 | 3ec9afb951a0 |
--- a/tests/test-atomictempfile.py Sat May 13 11:42:42 2017 -0700 +++ b/tests/test-atomictempfile.py Sat May 13 11:52:44 2017 -0700 @@ -47,7 +47,8 @@ # if a programmer screws up and passes bad args to atomictempfile, they # get a plain ordinary TypeError, not infinite recursion def testoops(self): - self.assertRaises(TypeError, atomictempfile) + with self.assertRaises(TypeError): + atomictempfile() # checkambig=True avoids ambiguity of timestamp def testcheckambig(self):