summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileio.py
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2013-12-08 06:44:27 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2013-12-08 06:44:27 (GMT)
commit101d9e7250c039aeabea1582459d40b52cc81024 (patch)
treee0a6990c763c2435fae0a08a4114ac17569aa261 /Lib/test/test_fileio.py
parent5ca129b8f016668bf914592e58082c452a7ad9b4 (diff)
parent7ef00ff91a0a90a2b11df40d110365e6a7909a94 (diff)
downloadcpython-101d9e7250c039aeabea1582459d40b52cc81024.zip
cpython-101d9e7250c039aeabea1582459d40b52cc81024.tar.gz
cpython-101d9e7250c039aeabea1582459d40b52cc81024.tar.bz2
Issue 19572: More silently skipped tests explicitly skipped.
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r--Lib/test/test_fileio.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index e678769..b10ea89 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -341,8 +341,7 @@ class OtherFileTests(unittest.TestCase):
try:
fn = TESTFN.encode("ascii")
except UnicodeEncodeError:
- # Skip test
- return
+ self.skipTest('could not encode %r to ascii' % TESTFN)
f = _FileIO(fn, "w")
try:
f.write(b"abc")