Comments (3)
THE BLOODY NARRATIVE TEST SETS A COOKIE WITH AN EXPIRATION DATE OF JANUARY THE FIRST TWO THOUSAND AND NINETEEN ANNO DOMINI.
Nice ⏲️ 💣 !
from zope.testbrowser.
I've looked at it, and ugh. Dealing with long narrative doctests where the only test runner is tox -e docs
is like walking through mud.
Something changed in webob's cookie parser? Or we're not using it correctly? I noticed two problems:
using a space in a cookie's comment field causes a RuntimeWarning from webob (but the space gets encoded as %20, correctly, like the doctest expects)(this happened before and did not cause the build to fail)- cookie expiration date gets lost somewhere (on my machine)
- the entire cookie disappears (on Travis CI)
The last successful build was https://travis-ci.org/zopefoundation/zope.testbrowser/builds/472125193.
The first failed build was https://travis-ci.org/zopefoundation/zope.testbrowser/builds/474117777.
The difference (looking at the Python 2.7 job):
- successful build had beautifulsoup4 4.6.3
- failed build had beautifulsoup4 4.7.0
- failed build also got new dependencies on backports.functools-lru-cache (1.5) and soupsieve (1.6), but I don't think it is relevant
Both builds had the same zope.testbrowser commit and had the same webob version.
from zope.testbrowser.
cookie expiration date gets lost somewhere (on my machine)
This is because the tests are sensitive to the user's locale! 🌐 🤡 🍾
If I set LC_TIME=C
, I can reproduce the KeyError problem I see on Travis.
(This might be an actual bug lurking somewhere!)
from zope.testbrowser.
Related Issues (20)
- displayValue setter silently ignores values which are not in displayOptions HOT 1
- Sphinx doctests are broken in Python 3 HOT 2
- Fix DeprecationWarnings
- Careless use of CSS selectors breaks with new BeautifulSoup HOT 1
- Cookie tests fail in different locales
- ItemControl.click() lets you uncheck radio buttons
- getLink() used to see iframes, now it doesn't
- Value of unchecked checkboxes changed from False to [] in zope.testbrowser 5.0.0 HOT 2
- getControl('Label') cannot find hidden inputs any more
- .reload() fails if the previous request was a POST HOT 1
- .reload() does not follow redirects nor does it raise exceptions for bad HTTP statuses HOT 1
- getLink() used to consider the whole enclosed text content, now it only looks at the directly contained text
- Allow option to prevent auto redirection HOT 1
- Python 3.8 support HOT 2
- getLink now tests regexes using .match, not .search HOT 1
- getLink uses stale cached HTML after goBack
- Browser._preparedRequest is a bit overenthusiastic about setting Referer HOT 1
- Browser._findAllControls() has wrong behaviour with no-name inputs and checkboxes HOT 1
- Replace `.browser.SetattrErrorsMixin` with `__slots__`?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zope.testbrowser.