##// END OF EJS Templates
tests: fix test-demandimport.py on Python 3.9...
Manuel Jacob -
r45956:fc829931 stable
parent child Browse files
Show More
@@ -232,7 +232,7 b' from mercurial import util'
232 232 # Unlike the import statement, __import__() function should not raise
233 233 # ImportError even if fromlist has an unknown item
234 234 # (see Python/import.c:import_module_level() and ensure_fromlist())
235 assert 'zipfile' not in sys.modules
236 zipfileimp = __import__('zipfile', globals(), locals(), ['unknownattr'])
237 assert f(zipfileimp) == "<module 'zipfile' from '?'>", f(zipfileimp)
235 assert 'ftplib' not in sys.modules
236 zipfileimp = __import__('ftplib', globals(), locals(), ['unknownattr'])
237 assert f(zipfileimp) == "<module 'ftplib' from '?'>", f(zipfileimp)
238 238 assert not util.safehasattr(zipfileimp, 'unknownattr')
General Comments 0
You need to be logged in to leave comments. Login now