[pypy-svn] r53728 - in pypy/branch/io-improvements/pypy/rlib: . test

fijal at codespeak.net fijal at codespeak.net
Sat Apr 12 18:50:16 CEST 2008


Author: fijal
Date: Sat Apr 12 18:50:16 2008
New Revision: 53728

Modified:
   pypy/branch/io-improvements/pypy/rlib/rsocket.py
   pypy/branch/io-improvements/pypy/rlib/test/test_rsocket.py
Log:
Always run tests! Kill nonworking tests and fix typo catched by others.


Modified: pypy/branch/io-improvements/pypy/rlib/rsocket.py
==============================================================================
--- pypy/branch/io-improvements/pypy/rlib/rsocket.py	(original)
+++ pypy/branch/io-improvements/pypy/rlib/rsocket.py	Sat Apr 12 18:50:16 2008
@@ -1276,7 +1276,7 @@
             finally:
                 lltype.free(dstbuf, flavor='raw')
         finally:
-            lltype.free_nonmovingbuffer(packed, srcbuf)
+            rffi.free_nonmovingbuffer(packed, srcbuf)
 
 def setdefaulttimeout(timeout):
     if timeout < 0.0:

Modified: pypy/branch/io-improvements/pypy/rlib/test/test_rsocket.py
==============================================================================
--- pypy/branch/io-improvements/pypy/rlib/test/test_rsocket.py	(original)
+++ pypy/branch/io-improvements/pypy/rlib/test/test_rsocket.py	Sat Apr 12 18:50:16 2008
@@ -370,30 +370,6 @@
 
     clientsock.close()
     s.close()
-    
-class BaseSendRecvTest(BaseRtypingTest):
-    def test_socketpair(self):
-        if sys.platform == "win32":
-            py.test.skip('No socketpair on Windows')
-            
-        def f():
-            s1, s2 = socketpair()
-            s1.sendall('?')
-            buf = s2.recv(100)
-            assert buf == '?'
-            count = s2.send('x'*99)
-            assert 1 <= count <= 99
-            buf = s1.recv(100)
-            assert buf == 'x'*count
-            s1.close()
-            s2.close()
-        self.interpret(f,[])
-
-class TestSendRecvMovingGc(BaseSendRecvTest, LLRtypeMixin):
-    MOVING_GC = True
-
-class TestSendRecvNonMovingGc(BaseSendRecvTest, LLRtypeMixin):
-    MOVING_GC = False
 
 class TestTCP:
     PORT = 50007



More information about the Pypy-commit mailing list