Skip to content

Fork of Python 2.7's doctest adding support for dict literals and other evalable expressions

License

Notifications You must be signed in to change notification settings

mrgriffin/doctest-eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

doctest-eval

Fork of Python 2.7's doctest adding support for dict literals and other evalable expressions

Behaves like regular doctest except when the expected expression can be evaled and the final statement in the REPL is an expression, in that case the result of that expression is compared with the evaled expression using ==.

This means that dicts, sets etc are suitable for use in a doctest, both the following pass:

>>> {1, 2}
{1, 2}

>>> {1, 2}
{2, 1}

About

Fork of Python 2.7's doctest adding support for dict literals and other evalable expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages