Author terry.reedy
Recipients terry.reedy
Date 2020-05-22.04:07:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
import test.test_idle as ti
import unittest as u

has one failure:
Traceback (most recent call last):
  File "C:\Programs\Python39\lib\idlelib\idle_test\", line 230, in test_fetch_completions
    if __main__.__file__ != ac.__file__:
AttributeError: module '__main__' has no attribute '__file__'

ac = autocomplete. The condition is followed by 
            self.assertNotIn('AutoComplete', small)  # See issue 36405

which is false when ac is run as main to run the test.  Adding "hasattr(__main__, '__file__') and " to the beginning of the condition should be sufficient.  I should add a note to #36405 explaining this conditional assertion better.
Date User Action Args
2020-05-22 04:07:15terry.reedysetrecipients: + terry.reedy
2020-05-22 04:07:15terry.reedysetmessageid: <>
2020-05-22 04:07:15terry.reedylinkissue40723 messages
2020-05-22 04:07:14terry.reedycreate