Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43dee06

Browse files
committed
Another new test using "from test.test_support import ...", causing
subtle breakage on Windows (the test is skipped here, but the TestSkipped exception wasn't recognized as such, because of duplicate copies of test_support got loaded; so the test looks like a failure under Windows instead of a skip). Repaired the import, but THIS TEST *WILL* FAIL ON OTHER SYSTEMS NOW! Again due to the duplicate copies of test_support, the checked-in "expected output" file actually contains verbose-mode output. I can't generate the *correct* non-verbose output on my system. So, somebody please do that.
1 parent 6d7c442 commit 43dee06

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/test/test_poll.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
# Test case for the os.poll() function
32

43
import sys, os, select, random
5-
from test.test_support import verbose, TestSkipped, TESTFN
4+
from test_support import verbose, TestSkipped, TESTFN
65

76
try:
87
select.poll
@@ -168,4 +167,3 @@ def test_poll2():
168167

169168
test_poll1()
170169
test_poll2()
171-

0 commit comments

Comments
 (0)