On Python 2.6 TestCase.assertRaises is not a context manager

This commit is contained in:
Ian Cordasco 2015-12-30 15:09:37 -06:00
parent 0f5961bf08
commit ebcf3493ec

View file

@ -70,5 +70,4 @@ class TestFlakesChecker(unittest.TestCase):
options = Options(builtins=None, doctests=False,
include_in_doctest='./cookies.txt',
exclude_from_doctest='./cookies.txt,cake_yuck.txt')
with self.assertRaises(ValueError):
FlakesChecker.parse_options(options)
self.assertRaises(ValueError, FlakesChecker.parse_options, options)