Author terry.reedy
Recipients terry.reedy
Date 2020-05-22.04:07:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590120435.83.0.2126629623.issue40723@roundup.psfhosted.org>
In-reply-to
Content
import test.test_idle as ti
import unittest as u
u.main(ti)

has one failure:
Traceback (most recent call last):
  File "C:\Programs\Python39\lib\idlelib\idle_test\test_autocomplete.py", 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.
History
Date User Action Args
2020-05-22 04:07:15terry.reedysetrecipients: + terry.reedy
2020-05-22 04:07:15terry.reedysetmessageid: <1590120435.83.0.2126629623.issue40723@roundup.psfhosted.org>
2020-05-22 04:07:15terry.reedylinkissue40723 messages
2020-05-22 04:07:14terry.reedycreate