1
0
python-astroid/failing-test.patch

14 lines
641 B
Diff
Raw Normal View History

Index: astroid-1.6.1/astroid/tests/unittest_manager.py
===================================================================
--- astroid-1.6.1.orig/astroid/tests/unittest_manager.py
+++ astroid-1.6.1/astroid/tests/unittest_manager.py
@@ -136,7 +136,7 @@ class AstroidManagerTest(resources.SysPa
self.manager.ast_from_module_name('foogle.moogle')
finally:
del pkg_resources._namespace_packages['foogle'] # pylint: disable=no-member
- sys.modules.pop('foogle')
+ sys.modules.pop('foogle', None)
def test_namespace_and_file_mismatch(self):
filepath = unittest.__file__