[pypy-svn] r46799 - pypy/dist/pypy/rlib/test

arigo at codespeak.net arigo at codespeak.net
Fri Sep 21 16:49:46 CEST 2007


Author: arigo
Date: Fri Sep 21 16:49:46 2007
New Revision: 46799

Modified:
   pypy/dist/pypy/rlib/test/test_rsocket.py
Log:
Try to never perform the lookup, with this flag.


Modified: pypy/dist/pypy/rlib/test/test_rsocket.py
==============================================================================
--- pypy/dist/pypy/rlib/test/test_rsocket.py	(original)
+++ pypy/dist/pypy/rlib/test/test_rsocket.py	Fri Sep 21 16:49:46 2007
@@ -250,7 +250,7 @@
 def test_getaddrinfo_no_reverse_lookup():
     # It seems that getaddrinfo never runs a reverse lookup on Linux.
     # Python2.3 on Windows returns the hostname.
-    lst = getaddrinfo('134.99.112.214', None, flags=AI_CANONNAME)
+    lst = getaddrinfo('134.99.112.214', None, flags=AI_NUMERICHOST)
     assert isinstance(lst, list)
     found = False
     for family, socktype, protocol, canonname, addr in lst:



More information about the Pypy-commit mailing list