mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
Fix tests
This commit is contained in:
parent
4cc6f1dd66
commit
25dd8c445e
1 changed files with 1 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from unittest import TestCase
|
||||
from flakey import check, print_messages
|
||||
from pyflakes.api import check
|
||||
|
||||
|
||||
code = """
|
||||
|
|
@ -50,15 +50,12 @@ class TestFlake(TestCase):
|
|||
def test_exception(self):
|
||||
for c in (code, code2, code3):
|
||||
warnings = check(code, '(stdin)')
|
||||
warnings = print_messages(warnings)
|
||||
self.assertEqual(warnings, 0)
|
||||
|
||||
def test_from_import_exception_in_scope(self):
|
||||
warnings = check(code_from_import_exception, '(stdin)')
|
||||
warnings = print_messages(warnings)
|
||||
self.assertEqual(warnings, 0)
|
||||
|
||||
def test_import_exception_in_scope(self):
|
||||
warnings = check(code_import_exception, '(stdin)')
|
||||
warnings = print_messages(warnings)
|
||||
self.assertEqual(warnings, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue