Commit 94203a27 by Chris Jerdonek

Fixed issue that caused a SyntaxError when running nosetests in Python 2.4.

Older versions of Python (2.5 and earlier?) apparently didn't allow keyword
arguments to follow positional arguments called with the * operator.
parent c5326ce4
......@@ -55,9 +55,11 @@ def load_tests(loader=None, tests=None, ignore=None):
# http://docs.python.org/library/doctest.html#doctest.DocFileSuite
#
paths = [os.path.join(PROJECT_DIR, path) for path in text_file_paths]
tests.addTests(doctest.DocFileSuite(*paths, module_relative=False))
for path in paths:
suite = doctest.DocFileSuite(path, module_relative=False)
tests.addTests(suite)
modules = get_module_doctests()
modules = _get_module_doctests()
for module in modules:
suite = doctest.DocTestSuite(module)
tests.addTests(suite)
......@@ -65,7 +67,7 @@ def load_tests(loader=None, tests=None, ignore=None):
return tests
def get_module_doctests():
def _get_module_doctests():
modules = []
for pkg in pkgutil.walk_packages([SOURCE_DIR]):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment