mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
This commit is contained in:
parent
ad57d97596
commit
bec087f29d
31 changed files with 75 additions and 75 deletions
|
|
@ -7,7 +7,7 @@
|
|||
### mhlib. It should.
|
||||
|
||||
import unittest
|
||||
from test.test_support import run_unittest, TESTFN, SkipTest, import_module
|
||||
from test.test_support import run_unittest, TESTFN, import_module
|
||||
import os, StringIO
|
||||
import sys
|
||||
mhlib = import_module('mhlib', deprecated=True)
|
||||
|
|
@ -21,8 +21,8 @@ if (sys.platform.startswith("win") or sys.platform=="riscos" or
|
|||
# link counts, and that causes test_listfolders() here to get back
|
||||
# an empty list from its call of listallfolders().
|
||||
# The other tests here pass on Windows.
|
||||
raise SkipTest("skipped on %s -- " % sys.platform +
|
||||
"too many Unix assumptions")
|
||||
raise unittest.SkipTest("skipped on %s -- " % sys.platform +
|
||||
"too many Unix assumptions")
|
||||
|
||||
_mhroot = TESTFN+"_MH"
|
||||
_mhpath = os.path.join(_mhroot, "MH")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue