summaryrefslogtreecommitdiff
path: root/flake8/tests
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2012-12-29 22:00:22 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2012-12-29 22:00:22 -0500
commitb2135a0e0e862f5b2ec014c71c6a138558df8fe9 (patch)
treee19aa078077d5c90525ea8fbeb0ce552147f0def /flake8/tests
parentc17aeb3848866eb2a587a9150fa793411ca109c9 (diff)
downloadflake8-b2135a0e0e862f5b2ec014c71c6a138558df8fe9.tar.gz
Tentative independence from vendored pep8
I'm fairly certain we no longer need the copy we had of pep8.
Diffstat (limited to 'flake8/tests')
-rw-r--r--flake8/tests/test_flakes.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/flake8/tests/test_flakes.py b/flake8/tests/test_flakes.py
index c1e2514..230b62a 100644
--- a/flake8/tests/test_flakes.py
+++ b/flake8/tests/test_flakes.py
@@ -1,5 +1,5 @@
from unittest import TestCase
-from flake8.pyflakes import check
+from flakey import check, print_messages
code = """
@@ -49,11 +49,16 @@ class TestFlake(TestCase):
def test_exception(self):
for c in (code, code2, code3):
- warnings = check(code)
- self.assertEqual(warnings, 0, code)
+ warnings = check(code, '(stdin)')
+ warnings = print_messages(warnings)
+ self.assertEqual(warnings, 0)
def test_from_import_exception_in_scope(self):
- self.assertEqual(check(code_from_import_exception), 0)
+ warnings = check(code_from_import_exception, '(stdin)')
+ warnings = print_messages(warnings)
+ self.assertEqual(warnings, 0)
def test_import_exception_in_scope(self):
- self.assertEqual(check(code_import_exception), 0)
+ warnings = check(code_import_exception, '(stdin)')
+ warnings = print_messages(warnings)
+ self.assertEqual(warnings, 0)