[pypy-commit] pypy py3k: move a misplaced test
pjenvey
noreply at buildbot.pypy.org
Wed Apr 2 20:07:11 CEST 2014
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r70402:4ed2c44cfd6d
Date: 2014-04-01 16:56 -0700
http://bitbucket.org/pypy/pypy/changeset/4ed2c44cfd6d/
Log: move a misplaced test
diff --git a/pypy/module/_io/test/test_textio.py b/pypy/module/_io/test/test_textio.py
--- a/pypy/module/_io/test/test_textio.py
+++ b/pypy/module/_io/test/test_textio.py
@@ -369,6 +369,17 @@
t = _io.TextIOWrapper(NonbytesStream(u'a'))
raises(TypeError, t.read)
+ def test_device_encoding(self):
+ import os
+ import sys
+ encoding = os.device_encoding(sys.stderr.fileno())
+ if not encoding:
+ skip("Requires a result from "
+ "os.device_encoding(sys.stderr.fileno())")
+ import _io
+ f = _io.TextIOWrapper(sys.stderr.buffer)
+ assert f.encoding == encoding
+
class AppTestIncrementalNewlineDecoder:
def test_newline_decoder(self):
@@ -477,14 +488,3 @@
_check(dec)
dec = _io.IncrementalNewlineDecoder(None, translate=True)
_check(dec)
-
- def test_device_encoding(self):
- import os
- import sys
- encoding = os.device_encoding(sys.stderr.fileno())
- if not encoding:
- skip("Requires a result from "
- "os.device_encoding(sys.stderr.fileno())")
- import _io
- f = _io.TextIOWrapper(sys.stderr.buffer)
- assert f.encoding == encoding
More information about the pypy-commit
mailing list