Fix Windows test skip error revealed by buildbot. Also a comment spelling

correction in a previously fixed test.
This commit is contained in:
R. David Murray 2009-03-31 23:45:39 +00:00
parent a08867d8a1
commit 840ac926c5
2 changed files with 5 additions and 10 deletions

View file

@ -1,7 +1,7 @@
import unittest import unittest
from test.test_support import run_unittest, import_module from test.test_support import run_unittest, import_module
#Skip test of _sqlite3 module not installed # Skip test if _sqlite3 module was not built.
import_module('_sqlite3') import_module('_sqlite3')
from sqlite3.test import (dbapi, types, userfunctions, py25tests, from sqlite3.test import (dbapi, types, userfunctions, py25tests,

View file

@ -4,17 +4,12 @@
import os import os
import time import time
from test.fork_wait import ForkWait from test.fork_wait import ForkWait
from test.test_support import run_unittest, reap_children from test.test_support import run_unittest, reap_children, get_attribute
try: # If either of these do not exist, skip this test.
os.fork get_attribute(os, 'fork')
except AttributeError: get_attribute(os, 'wait4')
raise unittest.SkipTest, "os.fork not defined -- skipping test_wait4"
try:
os.wait4
except AttributeError:
raise unittest.SkipTest, "os.wait4 not defined -- skipping test_wait4"
class Wait4Test(ForkWait): class Wait4Test(ForkWait):
def wait_impl(self, cpid): def wait_impl(self, cpid):