Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Tests: docstring test will run only in python2
Browse files Browse the repository at this point in the history
  • Loading branch information
eplaut committed Aug 16, 2016
1 parent 83966e5 commit ee62ceb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_docstring.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import sys
import time
import slash
import doctest
import butler.butler as mut

Expand All @@ -11,6 +13,7 @@ def ret_func(*args, **kwargs):
return ret_func


@slash.requires(sys.version_info.major == 2, 'docstring test should run only on python 2 environment')
def test_docstring():
mut.ButlerServer.run_async = add_sleep(mut.ButlerServer.run_async)
doctest.testmod(mut, raise_on_error=True, verbose=True)
doctest.testmod(mut, raise_on_error=True, verbose=False)

0 comments on commit ee62ceb

Please sign in to comment.