diff options
| author | Zachary Ware <zachary.ware@gmail.com> | 2013-12-08 06:44:27 (GMT) |
|---|---|---|
| committer | Zachary Ware <zachary.ware@gmail.com> | 2013-12-08 06:44:27 (GMT) |
| commit | 101d9e7250c039aeabea1582459d40b52cc81024 (patch) | |
| tree | e0a6990c763c2435fae0a08a4114ac17569aa261 /Lib/test/test_io.py | |
| parent | 5ca129b8f016668bf914592e58082c452a7ad9b4 (diff) | |
| parent | 7ef00ff91a0a90a2b11df40d110365e6a7909a94 (diff) | |
| download | cpython-101d9e7250c039aeabea1582459d40b52cc81024.zip cpython-101d9e7250c039aeabea1582459d40b52cc81024.tar.gz cpython-101d9e7250c039aeabea1582459d40b52cc81024.tar.bz2 | |
Issue 19572: More silently skipped tests explicitly skipped.
Diffstat (limited to 'Lib/test/test_io.py')
| -rw-r--r-- | Lib/test/test_io.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 57f3659..344425b 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -421,14 +421,9 @@ class IOTest(unittest.TestCase): # a long time to build the >2GB file and takes >2GB of disk space # therefore the resource must be enabled to run this test. if sys.platform[:3] == 'win' or sys.platform == 'darwin': - if not support.is_resource_enabled("largefile"): - print("\nTesting large file ops skipped on %s." % sys.platform, - file=sys.stderr) - print("It requires %d bytes and a long time." % self.LARGE, - file=sys.stderr) - print("Use 'regrtest.py -u largefile test_io' to run it.", - file=sys.stderr) - return + support.requires( + 'largefile', + 'test requires %s bytes and a long time to run' % self.LARGE) with self.open(support.TESTFN, "w+b", 0) as f: self.large_file_ops(f) with self.open(support.TESTFN, "w+b") as f: @@ -698,6 +693,7 @@ class CommonBufferedTests: self.assertEqual(42, bufio.fileno()) + @unittest.skip('test having existential crisis') def test_no_fileno(self): # XXX will we always have fileno() function? If so, kill # this test. Else, write it. |
