• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / persistent / 289
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: clear_dict_py314
DEFAULT BRANCH: master
Ran 27 Aug 2018 03:46PM UTC
Jobs 12
Files 23
Run time 9min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
289

Pull #90

travis-ci

web-flow
Make test pass when run with 'tox'

I used to get failures like

    py27 runtests: commands[0] | zope-testrunner --test-path=.
    Test-module import failures:

    Module: persistent.tests.test_docs

    IOError: [Errno 2] No such file or directory: '/home/mg/src/zopefoundation/persistent/.tox/docs/api/cache.rst'

    Running zope.testrunner.layer.UnitTests tests:
      Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
      Ran 524 tests with 0 failures, 1 errors and 0 skipped in 0.249 seconds.
    Tearing down left over layers:
      Tear down zope.testrunner.layer.UnitTests in 0.000 seconds.

    Test-modules with import problems:
      persistent.tests.test_docs
    ERROR: InvocationError for command '/home/mg/src/zopefoundation/persistent/.tox/py27/bin/zope-testrunner --test-path=.' (exited with code 1)

because adding a ../ at the end of the path is not the same as stripping
off the last path component when symlinks are involved!

    $ cd .tox && ./py27/bin/python
    >>> >>> from persistent.tests.test_docs import __file__
    >>> __file__
    '/home/mg/src/zopefoundation/persistent/.tox/py27/local/lib/python2.7/site-packages/persistent/tests/test_docs.pyc'

.tox/py27/local/lib is a symlink to /home/mg/src/zopefoundation/persistent/.tox/py27/lib
and so .tox/py27/local/lib/.. is pointing to .tox/py27, while
os.path.abspath() thinks it's pointing to .tox/py27/local.

    >>> import os
    >>> here = os.path.dirname(__file__)
    >>> while not os.path.exists(os.path.join(here, 'setup.py')): here = os.path.join(here, '..')
    ...
    >>> here
    '/home/mg/src/zopefoundation/persistent/.tox/py27/local/lib/python2.7/site-packages/persistent/tests/../../../../../../..'
    >>> os.path.abspath(here)
    '/home/mg/src/zopefoundation/persistent/.tox'
    >>> os.path.exists(os.path.join(here, 'setup.py'))
    True
    >>> os.path.exists(os.path.join(os.path.abspath(here), 'setup.py'))
    False
    >>> os.path.exists(os.path.abspath(os.path.joi... (continued)
Pull Request #90: Make test pass when run with 'tox'

3 of 3 new or added lines in 1 file covered. (100.0%)

4402 of 4402 relevant lines covered (100.0%)

11.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 289.1 27 Aug 2018 03:46PM UTC 0
99.77
Travis Job 289.1
2 289.2 27 Aug 2018 03:46PM UTC 0
100.0
Travis Job 289.2
3 289.3 27 Aug 2018 03:47PM UTC 0
100.0
Travis Job 289.3
4 289.4 27 Aug 2018 03:47PM UTC 0
100.0
Travis Job 289.4
5 289.5 27 Aug 2018 03:55PM UTC 0
96.46
Travis Job 289.5
6 289.6 27 Aug 2018 03:48PM UTC 0
96.02
Travis Job 289.6
7 289.7 27 Aug 2018 03:48PM UTC 0
100.0
Travis Job 289.7
8 289.8 (TERRYFY_PYTHON='macpython 2.7') 27 Aug 2018 03:49PM UTC 0
99.77
Travis Job 289.8
9 289.9 (TERRYFY_PYTHON='macpython 3.4') 27 Aug 2018 03:49PM UTC 0
100.0
Travis Job 289.9
10 289.10 (TERRYFY_PYTHON='macpython 3.5') 27 Aug 2018 03:50PM UTC 0
100.0
Travis Job 289.10
11 289.11 (TERRYFY_PYTHON='macpython 3.6.0') 27 Aug 2018 03:50PM UTC 0
100.0
Travis Job 289.11
12 289.12 (TERRYFY_PYTHON='macpython 3.7.0') 27 Aug 2018 03:52PM UTC 0
100.0
Travis Job 289.12
Source Files on build 289
  • List 0
  • Changed 10
  • Source Changed 5
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #289
  • Pull Request #90
  • PR Base - master (#286)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc