Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pystache_custom
Commits
98a5baa0
Commit
98a5baa0
authored
Apr 07, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added code comments re: the load_tests protocol.
parent
c491c2fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
pystache/tests/test_doctests.py
+14
-4
No files found.
pystache/tests/test_doctests.py
View file @
98a5baa0
...
...
@@ -24,10 +24,20 @@ from pystache.tests.common import PROJECT_DIR, SOURCE_DIR
text_file_paths
=
[
'README.rst'
]
# Allowing load_tests() to be called is a hack to allow unit tests
# to be run with nose's nosetests without error. Otherwise, nose
# interprets the following function as a test case, raising the
# following error:
# The following load_tests() function implements unittests's load_tests
# protocol added in Python 2.7. Using this protocol allows us to
# include the doctests in test runs without the use of nose, for example
# when using Distribute's test as in the following:
#
# python setup.py test
#
# TODO: find a substitute for the load_tests protocol for Python versions
# before version 2.7.
#
# HACK: Allowing load_tests() to be called without arguments is a hack
# to allow unit tests to be run with nose's nosetests without error.
# Otherwise, nose interprets the following function as a test case,
# raising the following error:
#
# TypeError: load_tests() takes exactly 3 arguments (0 given)
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment