mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
remove test_support.TestSkipped and just use unittest.SkipTest
This commit is contained in:
parent
21f6aac633
commit
888a39b54c
44 changed files with 99 additions and 108 deletions
|
|
@ -6,7 +6,7 @@ import stat
|
|||
import sys
|
||||
import unittest
|
||||
from test.test_support import run_unittest, TESTFN, verbose, requires, \
|
||||
TestSkipped, unlink
|
||||
SkipTest, unlink
|
||||
|
||||
try:
|
||||
import signal
|
||||
|
|
@ -104,7 +104,7 @@ class TestCase(unittest.TestCase):
|
|||
# this is already decided before start running the test suite
|
||||
# but we do it anyway for extra protection
|
||||
if not hasattr(f, 'truncate'):
|
||||
raise TestSkipped, "open().truncate() not available on this system"
|
||||
raise SkipTest, "open().truncate() not available on this system"
|
||||
f.seek(0, 2)
|
||||
# else we've lost track of the true size
|
||||
self.assertEqual(f.tell(), size+1)
|
||||
|
|
@ -155,7 +155,7 @@ def test_main():
|
|||
except (IOError, OverflowError):
|
||||
f.close()
|
||||
unlink(TESTFN)
|
||||
raise TestSkipped, "filesystem does not have largefile support"
|
||||
raise SkipTest, "filesystem does not have largefile support"
|
||||
else:
|
||||
f.close()
|
||||
suite = unittest.TestSuite()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue