]> granicus.if.org Git - python/commitdiff
Add 'linux2' as one of the platforms that does not use the echo service as one
authorBrett Cannon <bcannon@gmail.com>
Sat, 20 Nov 2004 21:10:07 +0000 (21:10 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 20 Nov 2004 21:10:07 +0000 (21:10 +0000)
of the test possiblities for testGetServBy().

Lib/test/test_socket.py

index 8222c0b084bc7d60ac8f53fc08f26f279644dabd..e6cdb8b2cc2f43e26c3a2dcf5890c4335524ab20 100644 (file)
@@ -311,7 +311,8 @@ class GeneralModuleTests(unittest.TestCase):
         # Find one service that exists, then check all the related interfaces.
         # I've ordered this by protocols that have both a tcp and udp
         # protocol, at least for modern Linuxes.
-        if sys.platform in ('freebsd4', 'freebsd5', 'freebsd6', 'darwin'):
+        if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
+                            'darwin'):
             # avoid the 'echo' service on this platform, as there is an
             # assumption breaking non-standard port/protocol entry
             services = ('daytime', 'qotd', 'domain')