[py-svn] r23182 - py/branch/setup/py/misc/testing

jan at codespeak.net jan at codespeak.net
Thu Feb 9 20:26:51 CET 2006


Author: jan
Date: Thu Feb  9 20:26:48 2006
New Revision: 23182

Modified:
   py/branch/setup/py/misc/testing/test_initpkg.py
Log:
(svn) 'unkonwn' == (svnversion) 'exported'


Modified: py/branch/setup/py/misc/testing/test_initpkg.py
==============================================================================
--- py/branch/setup/py/misc/testing/test_initpkg.py	(original)
+++ py/branch/setup/py/misc/testing/test_initpkg.py	Thu Feb  9 20:26:48 2006
@@ -80,6 +80,9 @@
     except py.error.ENOENT:
         py.test.skip("cannot test svnversion, 'svnversion' binary not found")
     v = svnversion.sysexec(py.path.local(py.__file__).dirpath())
+    # svnversion returns "exported" if the version is 'unknown' 
+    if v.startswith('exported'):
+        v='unknown'
     assert v.startswith(str(d))
 
 # the following test should abasically work in the future



More information about the pytest-commit mailing list