[pypy-svn] r34752 - pypy/dist/pypy/rlib/test
antocuni at codespeak.net
antocuni at codespeak.net
Sun Nov 19 14:45:43 CET 2006
Author: antocuni
Date: Sun Nov 19 14:45:42 2006
New Revision: 34752
Modified:
pypy/dist/pypy/rlib/test/test_streamio.py
Log:
Test streamio also using ootypesystem.
Modified: pypy/dist/pypy/rlib/test/test_streamio.py
==============================================================================
--- pypy/dist/pypy/rlib/test/test_streamio.py (original)
+++ pypy/dist/pypy/rlib/test/test_streamio.py Sun Nov 19 14:45:42 2006
@@ -354,7 +354,7 @@
for seekto in range(0, end+1)
for whence in [0, 1, 2]]
random.shuffle(cases)
- if isinstance(self, LLRtypeMixin):
+ if isinstance(self, (LLRtypeMixin, OORtypeMixin)):
cases = cases[:7] # pick some cases at random - too slow!
def f():
all = file.readall()
@@ -387,7 +387,7 @@
for seekto in range(readto, end+1)
for whence in [1, 2]]
random.shuffle(cases)
- if isinstance(self, LLRtypeMixin):
+ if isinstance(self, (LLRtypeMixin, OORtypeMixin)):
cases = cases[:7] # pick some cases at random - too slow!
def f():
for readto, seekto, whence in cases:
@@ -415,6 +415,10 @@
LLRtypeMixin):
pass
+class TestBufferingInputStreamTestsOOinterp(BaseTestBufferingInputStreamTests,
+ OORtypeMixin):
+ pass
+
class TestBufferedRead:
packets = ["a", "b", "\n", "def", "\nxy\npq\nuv", "wx"]
lines = ["ab\n", "def\n", "xy\n", "pq\n", "uvwx"]
@@ -509,7 +513,11 @@
class TestBufferingOutputStreamLLinterp(BaseTestBufferingOutputStream,
LLRtypeMixin):
pass
-
+
+class TestBufferingOutputStreamOOinterp(BaseTestBufferingOutputStream,
+ OORtypeMixin):
+ pass
+
class BaseTestLineBufferingOutputStream(BaseRtypingTest):
@@ -550,7 +558,11 @@
class TestLineBufferingOutputStreamLLinterp(BaseTestLineBufferingOutputStream,
LLRtypeMixin):
pass
-
+
+class TestLineBufferingOutputStreamOOinterp(BaseTestLineBufferingOutputStream,
+ OORtypeMixin):
+ pass
+
class BaseTestCRLFFilter(BaseRtypingTest):
@@ -575,6 +587,8 @@
class TestCRLFFilterLLinterp(BaseTestCRLFFilter, LLRtypeMixin):
pass
+class TestCRLFFilterOOinterp(BaseTestCRLFFilter, OORtypeMixin):
+ pass
class TestMMapFile(BaseTestBufferingInputStreamTests):
tfn = None
@@ -678,6 +692,10 @@
BaseTestBufferingInputOutputStreamTests, LLRtypeMixin):
pass
+class TestBufferingInputOutputStreamTestsOOinterp(
+ BaseTestBufferingInputOutputStreamTests, OORtypeMixin):
+ pass
+
class BaseTestTextInputFilter(BaseRtypingTest):
@@ -782,6 +800,9 @@
class TestTextInputFilterLLinterp(BaseTestTextInputFilter, LLRtypeMixin):
pass
+class TestTextInputFilterOOinterp(BaseTestTextInputFilter, OORtypeMixin):
+ pass
+
class BaseTestTextOutputFilter(BaseRtypingTest):
@@ -862,6 +883,9 @@
class TestTextOutputFilterLLinterp(BaseTestTextOutputFilter, LLRtypeMixin):
pass
+class TestTextOutputFilterOOinterp(BaseTestTextOutputFilter, OORtypeMixin):
+ pass
+
class TestDecodingInputFilter:
More information about the Pypy-commit
mailing list