Author: Brian Kearns <[email protected]>
Branch:
Changeset: r63324:7beff1053ecc
Date: 2013-04-13 17:22 -0400
http://bitbucket.org/pypy/pypy/changeset/7beff1053ecc/
Log: close these sockets so test passes on pypy
diff --git a/rpython/rlib/test/test_rsocket.py
b/rpython/rlib/test/test_rsocket.py
--- a/rpython/rlib/test/test_rsocket.py
+++ b/rpython/rlib/test/test_rsocket.py
@@ -375,6 +375,8 @@
s2 = s.dup()
assert s.fd != s2.fd
assert s.getsockname().eq(s2.getsockname())
+ s.close()
+ s2.close()
def test_c_dup():
# rsocket.dup() duplicates fd, it also works on Windows
@@ -384,6 +386,8 @@
s2 = RSocket(fd=dup(s.fd))
assert s.fd != s2.fd
assert s.getsockname().eq(s2.getsockname())
+ s.close()
+ s2.close()
def test_inet_aton():
assert inet_aton('1.2.3.4') == '\x01\x02\x03\x04'
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit