summaryrefslogtreecommitdiff
path: root/Lib/test/test_largefile.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-26 21:10:30 +0000
committerBenjamin Peterson <benjamin@python.org>2009-03-26 21:10:30 +0000
commitbec087f29d7dca0aaf8f51be7d7c135e9b84e7f1 (patch)
treeb7e37c8e82279a3a58d768ec4a79fd51488521f7 /Lib/test/test_largefile.py
parentad57d97596bb9466e6fce0c3dfcf436fd5c36ff9 (diff)
downloadcpython-git-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.tar.gz
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r--Lib/test/test_largefile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py
index 783881b348..0f1c1907e4 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, \
- SkipTest, unlink
+ 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 SkipTest, "open().truncate() not available on this system"
+ raise unittest.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 SkipTest, "filesystem does not have largefile support"
+ raise unittest.SkipTest, "filesystem does not have largefile support"
else:
f.close()
suite = unittest.TestSuite()