[pypy-commit] pypy py3k: _pickle & cStringIO are dead, kill

pjenvey noreply at buildbot.pypy.org
Tue Apr 16 20:28:53 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63420:26c0fb3aa469
Date: 2013-04-16 11:26 -0700
http://bitbucket.org/pypy/pypy/changeset/26c0fb3aa469/

Log:	_pickle & cStringIO are dead, kill

diff --git a/pypy/module/test_lib_pypy/test__pickle.py b/pypy/module/test_lib_pypy/test__pickle.py
deleted file mode 100644
--- a/pypy/module/test_lib_pypy/test__pickle.py
+++ /dev/null
@@ -1,6 +0,0 @@
-
-class AppTestPickle:
-
-    def test_stack_underflow(self):
-        import _pickle
-        raises(TypeError, _pickle.loads, "a string")
diff --git a/pypy/module/test_lib_pypy/test_cStringIO.py b/pypy/module/test_lib_pypy/test_cStringIO.py
deleted file mode 100644
--- a/pypy/module/test_lib_pypy/test_cStringIO.py
+++ /dev/null
@@ -1,25 +0,0 @@
-"""
-Tests for the PyPy cStringIO implementation.
-"""
-
-class AppTestcStringIO:
-    def setup_class(cls):
-        cls.w_io = cls.space.appexec([], "(): import cStringIO; return cStringIO")
-        cls.w_bytes = cls.space.wrap('some bytes')
-
-    def test_reset(self):
-        """
-        Test that the reset method of cStringIO objects sets the position
-        marker to the beginning of the stream.
-        """
-        io = self.io.StringIO()
-        io.write(self.bytes)
-        assert io.read() == ''
-        io.reset()
-        assert io.read() == self.bytes
-
-        io = self.io.StringIO(self.bytes)
-        assert io.read() == self.bytes
-        assert io.read() == ''
-        io.reset()
-        assert io.read() == self.bytes


More information about the pypy-commit mailing list