[Zope3-checkins] CVS: Packages/ZConfig/tests - test_datatypes.py:1.1.2.6
Fred L. Drake, Jr.
fred@zope.com
Wed, 25 Dec 2002 00:40:01 -0500
Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv14945
Modified Files:
Tag: zconfig-schema-devel-branch
test_datatypes.py
Log Message:
test_datatype_socket_address():
The fix for Windows broke the test on Unix; this fixes it for
both.
=== Packages/ZConfig/tests/test_datatypes.py 1.1.2.5 => 1.1.2.6 ===
--- Packages/ZConfig/tests/test_datatypes.py:1.1.2.5 Tue Dec 24 22:54:26 2002
+++ Packages/ZConfig/tests/test_datatypes.py Wed Dec 25 00:40:00 2002
@@ -167,9 +167,9 @@
eq(convert("host.EXAMPLE.com"), (AF_INET, ("host.example.com",None)))
if hasattr(socket, "AF_UNIX"):
eq(convert("/tmp/var/@345.4"),
- (AF_UNIX, "/tmp/var/@345.4"))
+ (socket.AF_UNIX, "/tmp/var/@345.4"))
eq(convert("/tmp/var/@345.4:80"),
- (AF_UNIX, "/tmp/var/@345.4:80"))
+ (socket.AF_UNIX, "/tmp/var/@345.4:80"))
else:
raises(ValueError, convert, "/tmp/var/@345.4")
raises(ValueError, convert, "/tmp/var/@345.4:80")