Issue #19927: Add __eq__ to path-based loaders in importlib.

This commit is contained in:
Eric Snow 2014-01-04 15:06:49 -07:00
parent 78194cd4e9
commit d749c7ae68
6 changed files with 698 additions and 621 deletions

View file

@ -288,8 +288,7 @@ def test_find_submodule(self):
self.assertNotIn(name, sorted(sys.modules))
# Ensure successive calls behave the same.
spec_again = self.init.find_spec(fullname, [pkg_dir])
# XXX Once #19927 is resolved, uncomment this line.
#self.assertEqual(spec_again, spec)
self.assertEqual(spec_again, spec)
def test_find_submodule_missing_path(self):
name = 'spam'