Skip to content

Commit 631e48d

Browse files
committed
fix another importlib test
1 parent e2a3e2e commit 631e48d

File tree

1 file changed

+2
-1
lines changed
  • graalpython/lib-python/3/test/test_importlib

1 file changed

+2
-1
lines changed

graalpython/lib-python/3/test/test_importlib/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ def test_reload_missing_loader(self):
229229

230230
self.assertIs(reloaded, types)
231231
self.assertIs(sys.modules['types'], types)
232-
self.assertEqual(reloaded.__loader__.path, loader.path)
232+
# Truffle change: we freeze types, so may not have a path
233+
self.assertEqual(getattr(reloaded.__loader__, "path", None), getattr(loader, "path", None))
233234

234235
def test_reload_loader_replaced(self):
235236
with support.CleanImport('types'):

0 commit comments

Comments
 (0)