[Python-checkins] python/dist/src/Lib/test test_socket.py, 1.70, 1.71

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Tue Jul 6 18:48:27 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12991

Modified Files:
	test_socket.py 
Log Message:
testGetServBy(): Use services that should be available both on *nix and
Windows (XP at least ;).  Test in this order: echo, daytime, domain.


Index: test_socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket.py,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** test_socket.py	28 Jun 2004 00:50:37 -0000	1.70
--- test_socket.py	6 Jul 2004 16:48:25 -0000	1.71
***************
*** 290,294 ****
          # I've ordered this by protocols that have both a tcp and udp
          # protocol, at least for modern Linuxes.
!         for service in ('ssh', 'www', 'echo', 'imap2'):
              try:
                  port = socket.getservbyname(service, 'tcp')
--- 290,294 ----
          # I've ordered this by protocols that have both a tcp and udp
          # protocol, at least for modern Linuxes.
!         for service in ('echo', 'daytime', 'domain'):
              try:
                  port = socket.getservbyname(service, 'tcp')



More information about the Python-checkins mailing list