Python 2.6 Compatibility

This commit is contained in:
Kay Sackey 2016-01-28 15:38:00 -05:00
parent bc5cd169ec
commit e4a58ee0ad

View File

@ -46,8 +46,7 @@ class TestPipreqs(unittest.TestCase):
"""
Test that invalid python files cannot be imported.
"""
with self.assertRaises(SyntaxError) as exc:
imports = pipreqs.get_all_imports(self.project_invalid)
self.assertRaises(SyntaxError, pipreqs.get_all_imports, self.project_invalid)
def test_get_imports_info(self):
"""