This was the only failure running unittest.main(test.test_idle) after imports.
======================================
+bpo-40723: Make test_idle pass when run after import.
+
bpo-38689: IDLE will no longer freeze when inspect.signature fails
when fetching a calltip.
acp = self.autocomplete
small, large = acp.fetch_completions(
'', ac.ATTRS)
- if __main__.__file__ != ac.__file__:
+ if hasattr(__main__, '__file__') and __main__.__file__ != ac.__file__:
self.assertNotIn('AutoComplete', small) # See issue 36405.
# Test attributes
--- /dev/null
+Make test_idle pass when run after import.