[Python-checkins] r65270 - doctools/branches/0.4.x/tests/util.py

georg.brandl python-checkins at python.org
Tue Jul 29 10:22:28 CEST 2008


Author: georg.brandl
Date: Tue Jul 29 10:22:28 2008
New Revision: 65270

Log:
Export test_root.


Modified:
   doctools/branches/0.4.x/tests/util.py

Modified: doctools/branches/0.4.x/tests/util.py
==============================================================================
--- doctools/branches/0.4.x/tests/util.py	(original)
+++ doctools/branches/0.4.x/tests/util.py	Tue Jul 29 10:22:28 2008
@@ -17,12 +17,16 @@
 
 
 __all__ = [
+    'test_root',
     'raises', 'raises_msg',
     'ErrorOutput', 'TestApp',
     'path', 'with_tempdir', 'write_file',
 ]
 
 
+test_root = path(__file__).parent.joinpath('root').abspath()
+
+
 def _excstr(exc):
     if type(exc) is tuple:
         return str(tuple(map(_excstr, exc)))
@@ -79,7 +83,7 @@
         application.CONFIG_FILENAME = confname
 
         if srcdir is None:
-            srcdir = path(__file__).parent.joinpath('root').abspath()
+            srcdir = test_root
         else:
             srcdir = path(srcdir)
         if confdir is None:


More information about the Python-checkins mailing list