Skip to content

Commit

Permalink
Use skipping to show that setup.py cannot be found.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Feb 11, 2019
1 parent 89d7014 commit db2119a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/zope/configuration/tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ def test_suite():
prev, here = here, os.path.dirname(here)
if here == prev:
# Let's avoid infinite loops at root
print('tests_doc.py: WARNING could not find setup.py -->'
' omitting documentation tests.') # pragma: no cover
class SkippedDocTests(unittest.TestCase): # pragma: no cover

@unittest.skip('Could not find setup.py')
def test_docs(self):
pass

suite.addTest(
unittest.makeSuite(SkippedDocTests)) # pragma: no cover
return suite # pragma: no cover

docs = os.path.join(here, 'docs')
Expand Down

0 comments on commit db2119a

Please sign in to comment.