Skip to content

Commit

Permalink
Fix running of README.rst when used as a check-out in Zope2.
Browse files Browse the repository at this point in the history
Without this change ``bin/alltests`` renders the following log message:
IOError: [Errno 2] No such file or directory: '…/Zope/develop/Acquisition/src/Acquisition/../../develop/Acquisition/README.rst'
  • Loading branch information
Michael Howitz committed Feb 2, 2017
1 parent e04a75e commit adde949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Acquisition/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3661,7 +3661,7 @@ def test_suite():
import os.path
here = os.path.dirname(__file__)
root = os.path.join(here, os.pardir, os.pardir)
readme = os.path.relpath(os.path.join(root, 'README.rst'))
readme = os.path.join(root, 'README.rst')

suites = [
DocTestSuite(),
Expand All @@ -3679,6 +3679,6 @@ def test_suite():
# This file is only available in a source checkout, skip it
# when tests are run for an installed version.
if os.path.isfile(readme):
suites.append(DocFileSuite(readme))
suites.append(DocFileSuite(readme, module_relative=False))

return unittest.TestSuite(suites)

0 comments on commit adde949

Please sign in to comment.