[pypy-svn] r21019 - pypy/dist/pypy/translator/c/test
nik at codespeak.net
nik at codespeak.net
Sun Dec 11 11:16:39 CET 2005
Author: nik
Date: Sun Dec 11 11:16:38 2005
New Revision: 21019
Modified:
pypy/dist/pypy/translator/c/test/test_ext__socket.py
Log:
(ale, nik)
remove this test which is now in the other test file, using the local test server.
Modified: pypy/dist/pypy/translator/c/test/test_ext__socket.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_ext__socket.py (original)
+++ pypy/dist/pypy/translator/c/test/test_ext__socket.py Sun Dec 11 11:16:38 2005
@@ -90,20 +90,6 @@
for args in tests:
py.test.raises(OSError, f1, *args)
-def test_connect():
- import os
- from pypy.module._socket.rpython import rsocket
- def does_stuff():
- fd = rsocket.newsocket(_socket.AF_INET, _socket.SOCK_STREAM, 0)
- # XXX need to think of a test without connecting to outside servers
- rsocket.connect(fd, ("codespeak.net", 80, 0, 0))
- sockname = rsocket.getpeername(fd)
- os.close(fd)
- return sockname[1]
- f1 = compile(does_stuff, [])
- res = f1()
- assert res == 80
-
def test_connect_error():
from pypy.module._socket.rpython import rsocket
import os
More information about the Pypy-commit
mailing list