[issue27918] Running test suites without gui but still having windows flash

2016-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue only addresses and fixes the 1 flash per process from test.support.is_gui_available. I separately added root.withdraw to IDLE tests in #27922, to stop their flashes. Doing the same for tkinter tests would be a third issue. I believe it would be e

[issue27918] Running test suites without gui but still having windows flash

2016-09-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset de9e410e78d8 by Terry Jan Reedy in branch '2.7': Issue #27918# test.resource.is_gui_available no longer flashes tk window. https://hg.python.org/cpython/rev/de9e410e78d8 New changeset 756c27efe193 by Terry Jan Reedy in branch '3.5': Issue #27918# te

[issue27918] Running test suites without gui but still having windows flash

2016-09-03 Thread Martin Panter
Martin Panter added the comment: Xiang’s second patch looks okay to me. The flashes occasionally annoy me with X windows if I am doing something else and have the Python tests running in the background. I understand deferring the _is_gui_available() call will fix the main problem, and the wit

[issue27918] Running test suites without gui but still having windows flash

2016-09-01 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file44315/issue27918.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue27918] Running test suites without gui but still having windows flash

2016-09-01 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file44314/issue27918.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: It's my pleasure. > My point was that even when I request gui, I still don't want to see the > flash. I also mean that in my last message, in this sentence " Even gui is enabled a single support.requires may seem somewhat confusing to flash a window". But it se

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I completely agree that we should not check that gui works unless and until it is requested. Can you write a patch to do the switch? My point was that even when I request gui, I still don't want to see the flash. I do TDD for test files as well as app file

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: > they both use test.support.import_module with no reason Sorry, this is a typo. I meant to say "they both use test.support.requires". There should be *no* "no reason" and it's "requires" not "import_module". Sorry to confuse you. Staying late in night fools my b

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Some time ago I tried adding 'root.withdraw' to idle_test files that used tkinter to stop the widget flashing. This never worked completely. Now I know why -- it was the test.support import. Knowing this now, I opened #27922 to add 'root.withdraw' where els

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: To my surprise, "python -m test test_idle" gives a single flash in Windows. #22770 modified /Lib/test/support/__init__.py and added the creation and packing of a Label. Those two lines are gone in repository 3.6 but the flash is still there, I added root.wit

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: Ahh, sorry. I misunderstand your message. Just ignore my last one. Really sorry for making noise. Your suggestion makes sense I think. -- ___ Python tracker

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: I tried that, no help to this thread, but I think that is better. root.update itself draws something on the screen. -- ___ Python tracker ___

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Zachary Ware
Zachary Ware added the comment: The order of the checks in support.requires{,_resource} should be reversed: check if the resource is enabled, then check for gui availability if the resource in question is 'gui'. -- nosy: +zach.ware ___ Python tracke

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: For your reference, the root.update is introduced in issue22770. -- ___ Python tracker ___ ___ Python-b

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Ned Deily
Changes by Ned Deily : -- nosy: +serhiy.storchaka, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27918] Running test suites without gui but still having windows flash

2016-08-31 Thread Xiang Zhang
New submission from Xiang Zhang: When I run test suites I find something interesting. Even if I don't enable gui resource there are still windows flashing. The two tests are test_idle and test_tk. I think the root cause is that they both use test.support.import_module with no reason and then r