mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Allow skipping of regression tests not supported on windows. This reduces noise in the regression test suite for py3k on Windows.
This commit is contained in:
parent
e3944a5e1e
commit
42a40c59a0
7 changed files with 14 additions and 10 deletions
|
@ -892,6 +892,7 @@ _expectations = {
|
||||||
test_fork1
|
test_fork1
|
||||||
test_epoll
|
test_epoll
|
||||||
test_dbm_gnu
|
test_dbm_gnu
|
||||||
|
test_dbm_ndbm
|
||||||
test_grp
|
test_grp
|
||||||
test_ioctl
|
test_ioctl
|
||||||
test_largefile
|
test_largefile
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import dbm.gnu as gdbm
|
from test import support
|
||||||
|
gdbm = support.import_module("dbm.gnu") #skip if not supported
|
||||||
import unittest
|
import unittest
|
||||||
import os
|
import os
|
||||||
from test.support import verbose, TESTFN, run_unittest, unlink
|
from test.support import verbose, TESTFN, run_unittest, unlink
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
from test import support
|
from test import support
|
||||||
|
support.import_module("dbm.ndbm") #skip if not supported
|
||||||
import unittest
|
import unittest
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
"Test posix functions"
|
"Test posix functions"
|
||||||
|
|
||||||
from test import support
|
from test import support
|
||||||
|
posix = support.import_module('posix') #skip if not supported
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
@ -9,8 +10,6 @@ import shutil
|
||||||
import unittest
|
import unittest
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
posix = support.import_module('posix')
|
|
||||||
|
|
||||||
warnings.filterwarnings('ignore', '.* potential security risk .*',
|
warnings.filterwarnings('ignore', '.* potential security risk .*',
|
||||||
RuntimeWarning)
|
RuntimeWarning)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
from test import support
|
||||||
|
pty = support.import_module("pty") #skip if not supported
|
||||||
import errno
|
import errno
|
||||||
import fcntl
|
import fcntl
|
||||||
import pty
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import signal
|
import signal
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
import syslog
|
|
||||||
import unittest
|
|
||||||
from test import support
|
from test import support
|
||||||
|
syslog = support.import_module("syslog") #skip if not supported
|
||||||
|
import unittest
|
||||||
|
|
||||||
# XXX(nnorwitz): This test sucks. I don't know of a platform independent way
|
# XXX(nnorwitz): This test sucks. I don't know of a platform independent way
|
||||||
# to verify that the messages were really logged.
|
# to verify that the messages were really logged.
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
import tkinter
|
|
||||||
from tkinter.test import runtktests
|
|
||||||
from test import support
|
from test import support
|
||||||
import unittest
|
|
||||||
|
|
||||||
# Skip test if _tkinter wasn't built.
|
# Skip test if _tkinter wasn't built.
|
||||||
support.import_module('_tkinter')
|
support.import_module('_tkinter')
|
||||||
|
|
||||||
|
import tkinter
|
||||||
|
from tkinter.test import runtktests
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
import tkinter
|
import tkinter
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue