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

plone / plone.testing / 262

Build:
Build:
LAST BUILD BRANCH: maurits/fix-failure-in-teardown
DEFAULT BRANCH: master
Ran 03 Oct 2018 02:15AM UTC
Jobs 2
Files 0
Run time –
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
262

push

travis-ci

davisagli
Fix teardown of the security.Checkers layer.

This was a fun one.
The zope.security.checker module has a module-global _checkers dict.
This layer tries to manage it as a stack, where pushing to the stack
copies the current dict and popping from the stack sets
zope.security.checker._checkers back to the copy that was stored.

But, it turns out that _checkers is imported from a C extension module,
and that module keeps a pointer to the original dict that is not
affected by the plone.testing stack pop. So subsequent lookups continue
to use the old dict.

To fix this I changed the stack pop operation to clear and update the
dict instead of replacing it, so that the pointer in the C module
is still valid.

There was a similar but different problem with the pure-Python implementation:
it sets _getChecker = _checkers.get initially and _getChecker was not updated
by the stack pop. My workaround should also deal with this case.
Jobs
ID Job ID Ran Files Coverage
1 262.1 (TOXENV=lint-py27) 03 Oct 2018 02:15AM UTC 0
Travis Job 262.1
2 262.2 (TOXENV=lint-py36) 03 Oct 2018 02:15AM UTC 0
Travis Job 262.2
Source Files on build 262
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #262
  • 58f98c3c on github
  • Prev Build on py3_disallow_commits (#225)
  • Next Build on py3_disallow_commits (#264)
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

© 2026 Coveralls, Inc