diff -r 7c3ef55dedbe -r 68c43a416585 tests/test-atomictempfile.py --- 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):