mirror of
https://github.com/python/cpython.git
synced 2025-12-07 17:57:56 +00:00
Merged revisions 71785 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71785 | r.david.murray | 2009-04-21 09:06:04 -0400 (Tue, 21 Apr 2009) | 4 lines Restore skips of posix and pty tests on Windows by calling the test_support.import_module on the appropriate modules before any other imports. ........
This commit is contained in:
parent
c4cae32683
commit
eb3615d9f6
2 changed files with 10 additions and 5 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
"Test posix functions"
|
"Test posix functions"
|
||||||
|
|
||||||
from test import support
|
from test import support
|
||||||
posix = support.import_module('posix') #skip if not supported
|
|
||||||
|
# Skip these tests if there is no posix module.
|
||||||
|
posix = support.import_module('posix')
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,14 @@
|
||||||
from test import support
|
from test.support import verbose, run_unittest, import_module
|
||||||
pty = support.import_module("pty") #skip if not supported
|
|
||||||
|
#Skip these tests if either fcntl or termios is not available
|
||||||
|
fcntl = import_module('fcntl')
|
||||||
|
import_module('termios')
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
import fcntl
|
import pty
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import signal
|
import signal
|
||||||
from test.support import verbose, run_unittest
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
TEST_STRING_1 = b"I wish to buy a fish license.\n"
|
TEST_STRING_1 = b"I wish to buy a fish license.\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue