[Zope3-checkins] CVS: Zope/lib/python/ZConfig/tests - test_datatypes.py:1.3

Fred L. Drake, Jr. fred@zope.com
Mon, 6 Jan 2003 11:51:53 -0500


Update of /cvs-repository/Zope/lib/python/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv12113

Modified Files:
	test_datatypes.py 
Log Message:
These tests assume that os.path.dirname(here) is always a valid
directory name, which is not always true.  Make sure this is an
absolute path so the dirname will always be valid.


=== Zope/lib/python/ZConfig/tests/test_datatypes.py 1.2 => 1.3 ===
--- Zope/lib/python/ZConfig/tests/test_datatypes.py:1.2	Fri Jan  3 16:05:56 2003
+++ Zope/lib/python/ZConfig/tests/test_datatypes.py	Mon Jan  6 11:51:49 2003
@@ -26,6 +26,8 @@
 except NameError:
     here = sys.argv[0]
 
+here = os.path.abspath(here)
+
 class DatatypeTestCase(unittest.TestCase):
     types = ZConfig.datatypes.Registry()