This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients JayKrish, Todd.Rovito, philwebster, terry.reedy
Date 2013-06-22.01:35:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371864929.22.0.632236095315.issue18279@psf.upfronthosting.co.za>
In-reply-to
Content
There is a separate issue about killing that warning.

If you leave off '-ugui', you will see the traceback and why I said that requires('gui') should be wrapped for unittest discovery. As the code is, the call is executed when the file is imported, possibly during discovery, before the  unittest or regrtest runner starts running tests and counting success, fail, skip.

Two other thoughts before I look as rstrip and the content of the new test file. 

I would like to just call it test_rstrip. 

I have thought of having just one mock_idle.py for mock Idle classes (as opposed to mock_tk with mock tk classes. I am not sure how many will will need. Since your mock_ewin uses a real tk.Text widget, hence requiring gui, what is its purpose? The point of the mock_tk classes is to avoid gui and make the test text only. I am not saying that this is the only purpose, but other purposes should be stated and documented.
History
Date User Action Args
2013-06-22 01:35:29terry.reedysetrecipients: + terry.reedy, Todd.Rovito, JayKrish, philwebster
2013-06-22 01:35:29terry.reedysetmessageid: <1371864929.22.0.632236095315.issue18279@psf.upfronthosting.co.za>
2013-06-22 01:35:29terry.reedylinkissue18279 messages
2013-06-22 01:35:28terry.reedycreate