]> granicus.if.org Git - python/commitdiff
Another new test using "from test.test_support import ...", causing
authorTim Peters <tim.peters@gmail.com>
Sat, 26 Aug 2000 08:24:18 +0000 (08:24 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 26 Aug 2000 08:24:18 +0000 (08:24 +0000)
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.

Lib/test/test_poll.py

index a06f56b047a1ed12e301ab80821e0c1669dabb50..543dc6bc48bf0b3364bae41bef1267dbaa41f553 100644 (file)
@@ -1,8 +1,7 @@
-
 # Test case for the os.poll() function
     
 import sys, os, select, random
-from test.test_support import verbose, TestSkipped, TESTFN
+from test_support import verbose, TestSkipped, TESTFN
 
 try:
     select.poll
@@ -168,4 +167,3 @@ def test_poll2():
 
 test_poll1()
 test_poll2()
-