mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +00:00
On Python 2.6 TestCase.assertRaises is not a context manager
This commit is contained in:
parent
0f5961bf08
commit
ebcf3493ec
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue