Skip to content

Commit

Permalink
Update test setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
thefunny42 committed Jan 13, 2016
1 parent b8d11f0 commit 18974f0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/grokcore/startup/tests/test_grokcorestartup.py
@@ -1,21 +1,22 @@
import doctest
import os
import re
import unittest
from zope.testing import doctest, renormalizing
from zope.testing import renormalizing

checker = renormalizing.RENormalizing([
# str(Exception) has changed from Python 2.4 to 2.5 (due to
# Exception now being a new-style class). This changes the way
# exceptions appear in traceback printouts.
(re.compile(r"ConfigurationExecutionError: <class '([\w.]+)'>:"),
r'ConfigurationExecutionError: \1:'),
])
(re.compile(
r"ConfigurationExecutionError: <class '([\w.]+)'>:"),
r'ConfigurationExecutionError: \1:')])

optionflags=(doctest.ELLIPSIS+
doctest.NORMALIZE_WHITESPACE)
optionflags = (doctest.ELLIPSIS + doctest.NORMALIZE_WHITESPACE)

main_doctests = ['README.txt']


def test_suite():
suite = unittest.TestSuite()

Expand Down

0 comments on commit 18974f0

Please sign in to comment.