Skip to content

Commit 565dbcb

Browse files
committed
Doctest is horrible.
1 parent 782ab62 commit 565dbcb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

jsonschema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ class FormatChecker(object):
459459
can be used to limit which formats will be used
460460
during validation.
461461
462-
>>> checker = FormatChecker(formats=("uri", "regex"))
462+
>>> checker = FormatChecker(formats=("date", "regex"))
463463
464464
"""
465465

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ commands =
1919
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
2020

2121
[testenv:py26]
22+
commands =
23+
nosetests -s tests.py
24+
{envpython} -m doctest README.rst
25+
{envpython} -m doctest jsonschema.py
2226
deps =
2327
{[testenv:notpy33]deps}
2428
{[testenv:all]deps}

0 commit comments

Comments
 (0)