Commits

jordilin committed d073dd4

fixed regex test versioning

Comments (0)

Files changed (2)

log4client/setup.py

 specific levels or lines. 
 '''
 
-__version__= re.search('__version__ = (\d+\.?\d+)', 
+__version__= re.search('__version__ = (\w+)', 
         open("src/log4tailer/__init__.py").read()).group(1)
     
 class Test(Command):

log4client/tests/test_endtoend.py

                 return False
         self.assertRaises(SystemExit, log4tailer.initialize, 
                 OptionsMock())
-        doc_version = re.search('\large Version (\d+\.?\d+)', 
+        doc_version = re.search('\large Version (\d+\.?\d+\.?\d+)', 
                 open('../userguide/log4tailer.tex').read()).group(1)
         self.assertEqual(doc_version, sys.stdout.captured[0])