[Checkins] SVN: zope.dottedname/trunk/ Fix README, update CHANGES, fix tests with recent zope.testing.

Sylvain Viollon sylvain at infrae.com
Tue Jan 27 08:41:49 EST 2009


Log message for revision 95186:
  Fix README, update CHANGES, fix tests with recent zope.testing.
  
  

Changed:
  U   zope.dottedname/trunk/CHANGES.txt
  U   zope.dottedname/trunk/README.txt
  U   zope.dottedname/trunk/src/zope/dottedname/tests.py

-=-
Modified: zope.dottedname/trunk/CHANGES.txt
===================================================================
--- zope.dottedname/trunk/CHANGES.txt	2009-01-27 13:41:46 UTC (rev 95185)
+++ zope.dottedname/trunk/CHANGES.txt	2009-01-27 13:41:49 UTC (rev 95186)
@@ -1,6 +1,16 @@
 CHANGES
 =======
 
+3.4.4 (2009-01-27)
+------------------
+
+- Fix ReST in README.txt, fix broken tests with recent zope.testing.
+
+3.4.3 (2008-12-02)
+------------------
+
+- More documentation and tests.
+
 3.4.2 (2007-10-02)
 ------------------
 

Modified: zope.dottedname/trunk/README.txt
===================================================================
--- zope.dottedname/trunk/README.txt	2009-01-27 13:41:46 UTC (rev 95185)
+++ zope.dottedname/trunk/README.txt	2009-01-27 13:41:49 UTC (rev 95186)
@@ -4,58 +4,58 @@
 
 The ``zope.dottedname`` module provides one function, ``resolve`` that
 resolves strings containing dotted names into the appropriate python
-object. 
+object.
 
 Dotted names are resolved by importing modules and by getting
 attributes from imported modules. Names may be relative, provided the
 module they are relative to is supplied.
 
-Here are some examples of importing absolute names:
+Here are some examples of importing absolute names::
 
->>> from zope.dottedname.resolve import resolve
+  >>> from zope.dottedname.resolve import resolve
 
->>> resolve('unittest')
-<module 'unittest' from '...'>
+  >>> resolve('unittest')
+  <module 'unittest' from '...'>
 
->>> resolve('datetime.datetime')
-<type 'datetime.datetime'>
+  >>> resolve('datetime.datetime')
+  <type 'datetime.datetime'>
 
->>> resolve('datetime.datetime.now')
-<built-in method now of type object at ...>
+  >>> resolve('datetime.datetime.now')
+  <built-in method now of type object at ...>
 
->>> resolve('non existent module')
-Traceback (most recent call last):
-...
-ImportError: No module named non existent module
+  >>> resolve('non existent module')
+  Traceback (most recent call last):
+  ...
+  ImportError: No module named non existent module
 
->>> resolve('__doc__')
-Traceback (most recent call last):
-...
-ImportError: No module named __doc__
+  >>> resolve('__doc__')
+  Traceback (most recent call last):
+  ...
+  ImportError: No module named __doc__
 
->>> resolve('datetime.foo')
-Traceback (most recent call last):
-...
-ImportError: No module named foo
+  >>> resolve('datetime.foo')
+  Traceback (most recent call last):
+  ...
+  ImportError: No module named foo
 
->>> resolve('os.path.split').__name__
-'split'
+  >>> resolve('os.path.split').__name__
+  'split'
 
-Here are some examples of importing relative names:
+Here are some examples of importing relative names::
 
->>> resolve('.split', 'os.path')
-<function split at ...>
+  >>> resolve('.split', 'os.path')
+  <function split at ...>
 
->>> resolve('..system', 'os.path')
-<built-in function system>
+  >>> resolve('..system', 'os.path')
+  <built-in function system>
 
->>> resolve('...datetime', 'os.path')
-<module 'datetime' (built-in)>
+  >>> resolve('...datetime', 'os.path')
+  <module 'datetime' from '...'>
 
 NB: When relative names are imported, a module the name is relative to
-**must** be supplied:
+**must** be supplied::
 
->>> resolve('.split').__name__
-Traceback (most recent call last):
-...
-ValueError: relative name without base module
+  >>> resolve('.split').__name__
+  Traceback (most recent call last):
+  ...
+  ValueError: relative name without base module

Modified: zope.dottedname/trunk/src/zope/dottedname/tests.py
===================================================================
--- zope.dottedname/trunk/src/zope/dottedname/tests.py	2009-01-27 13:41:46 UTC (rev 95185)
+++ zope.dottedname/trunk/src/zope/dottedname/tests.py	2009-01-27 13:41:49 UTC (rev 95186)
@@ -22,7 +22,8 @@
     return unittest.TestSuite((
         DocFileSuite(
             os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..','..','README.txt')),
-            optionflags=REPORT_NDIFF|ELLIPSIS
+            optionflags=REPORT_NDIFF|ELLIPSIS,
+            module_relative=False,
             ),
         ))
 



More information about the Checkins mailing list