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

zopefoundation / persistent
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: clear_dict_py314
DEFAULT BRANCH: master
Repo Added 31 Jul 2018 09:43PM UTC
Files 25
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

LAST BUILD ON BRANCH fix-tox
branch: fix-tox
CHANGE BRANCH
x
Reset
  • fix-tox
  • 4.4.0
  • 4.4.1
  • 4.4.2
  • 4.4.3
  • 4.5.0
  • 4.5.1
  • 4.6.0
  • 4.6.1
  • 4.6.2
  • 4.6.3
  • 4.6.4
  • 4.8.0
  • 4.9.0
  • 4.9.1
  • 4.9.2
  • 4.9.3
  • 5.0
  • 5.1
  • 5.2
  • 6.0
  • 6.1
  • 6.1.1
  • ExtensionClass_Base_as_object
  • all-repos_autofix_all-repos-sed
  • cache_size_parameter_enhancement
  • clear_dict_py314
  • config-with-c-code
  • config-with-c-code-template-0ce77409
  • config-with-c-code-template-18798421
  • config-with-c-code-template-1ab4df9f
  • config-with-c-code-template-2195d2ed
  • config-with-c-code-template-4dc0484e
  • config-with-c-code-template-5a4d3a13
  • config-with-c-code-template-6f8d8c51
  • config-with-c-code-template-7cdbe1e4
  • config-with-c-code-template-84c8ebcb
  • config-with-c-code-template-8d837c89
  • config-with-c-code-template-8daa034c
  • config-with-c-code-template-9e2b2911
  • config-with-c-code-template-a2f58d87
  • config-with-c-code-template-a361e1fd
  • config-with-c-code-template-a7193216
  • config-with-c-code-template-b21fbbf2
  • config-with-c-code-template-dc5cbb79
  • config-with-c-code-template-f317618e
  • config-with-c-code-template-f6f126ea
  • coverage
  • dataflake/cleanup_require_cffi
  • dataflake/fix_yet_another_setuptools_breakage
  • fix-GHA-pypy2
  • fix-c-warning
  • fix-caches
  • fix-docs-builds
  • fix-pypy-install
  • fix-wheels
  • flake8
  • isort
  • issue102
  • issue11
  • issue112
  • issue124
  • issue125
  • issue126
  • issue129
  • issue131
  • issue133
  • issue137
  • issue143
  • issue144
  • issue149
  • issue150
  • issue155
  • issue157
  • issue41
  • issue77
  • issue81
  • issue86
  • issue88
  • issue92
  • issue97
  • issue99
  • jo-sanitize-oid
  • macpython-3.6
  • master
  • no-pylint
  • perrinjerome/fix_oid_repr
  • py-refcnt
  • py-ssize-t-clean
  • py34,py38
  • py36-mac
  • py38-wheels
  • py39
  • req-cffi
  • src-layout
  • travis_mac_py3.8
  • tseaver-199-tox_e_coverage_passing
  • tseaver-206-remove-simple_new-fossil
  • tseaver-fix_compat_header
  • tseaver-fix_windows_breakage
  • tseaver-pep489
  • tseaver-py313-tomlize
  • tseaver-tweak_coverage
  • update-manylinux
  • use-pypi-token
  • use-unsigned-hex-consts-in-timestamp

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

Relevant lines Covered
Build:
Build:
4402 RELEVANT LINES 4402 COVERED LINES
11.92 HITS PER LINE
Source Files on fix-tox
  • List 0
  • Changed 10
  • Source Changed 5
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
289 fix-tox 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 direct... Pull #90 27 Aug 2018 03:46PM UTC web-flow travis-ci pending completion  
288 fix-tox 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 direct... push 27 Aug 2018 03:42PM UTC mgedmin travis-ci pending completion  
See All Builds (645)
  • Repo on GitHub
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