diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-03-26 20:48:25 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-03-26 20:48:25 +0000 |
commit | 888a39b54c4f47ee25d53b157e2c50402627cd0b (patch) | |
tree | 67a48f107d83b8451e338f1ea822f2b4c65f6960 /Lib/test/test_largefile.py | |
parent | 21f6aac633a78271e762d6cd4b709e6a91d0c42a (diff) | |
download | cpython-git-888a39b54c4f47ee25d53b157e2c50402627cd0b.tar.gz |
remove test_support.TestSkipped and just use unittest.SkipTest
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r-- | Lib/test/test_largefile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py index 1da0e7d1dc..783881b348 100644 --- a/Lib/test/test_largefile.py +++ b/Lib/test/test_largefile.py @@ -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() |