Coder Social home page Coder Social logo

Comments (3)

mgedmin avatar mgedmin commented on June 9, 2024 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.

mgedmin avatar mgedmin commented on June 9, 2024

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.

mgedmin avatar mgedmin commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.