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. Test that invalid python files cannot be imported.
""" """
with self.assertRaises(SyntaxError) as exc: self.assertRaises(SyntaxError, pipreqs.get_all_imports, self.project_invalid)
imports = pipreqs.get_all_imports(self.project_invalid)
def test_get_imports_info(self): def test_get_imports_info(self):
""" """