Skip to content

Commit

Permalink
Document the requirement for PyTest 2.8.6 or above.
Browse files Browse the repository at this point in the history
Fixes #43.
  • Loading branch information
jmcgeheeiv committed Oct 9, 2016
1 parent 624df67 commit 1311da2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytest_doctest_test.py
Expand Up @@ -37,13 +37,12 @@ def make_file(name, content=''):
passes = make_file_factory('passes', fake=False, result=True)
passes_too = make_file_factory('passes_too', fake=True, result=True)

# Actually, it crashes if we try to remove the file :/
passes_too.__doc__ = passes_too.__doc__.replace('>>> os.remove(name)',
'>>> pass')

fails = make_file_factory('fails', fake=False, result=False)

# Pytest raises an internal error when running these doctests:
# Pytest versions below 2.8.6 raise an internal error when running these doctests:
crashes = make_file_factory('crashes', fake=True, result=False)
crashes_too = make_file_factory(') SyntaxError', fake=True, result=False)

0 comments on commit 1311da2

Please sign in to comment.