Code Monkey home page Code Monkey logo

Comments (7)

RonnyPfannschmidt avatar RonnyPfannschmidt commented on September 7, 2024 1

we identified this as packaging/test invocation issue due to PYTHONPATH confusion
its not directly solved as the pyc file in the folder tested against have intentionally mangled metadata on which pytest stumbles

from simplejson.

etrepum avatar etrepum commented on September 7, 2024

This looks like an issue with pytest, the tests work perfectly fine when run with python setup.py test. I would accept a PR that works around this pytest issue.

from simplejson.

kloczek avatar kloczek commented on September 7, 2024

I've not been checking what serup.py test is doing but probably that procedure assumes that all tests will be done in source tree.
Issue is that performing exactly above testing procedure (which is working +~98% of my rpm packages with python modules) I'm not interested to test source tree but actual code which will be packaged.

Nevertheless can you explain why in your opinion it may be something wrong with pytest?

PS. I must tell why I'm trying to use pytest in all possible cases of my rpm packages (currently +550).
Only reason is that pytest is pluggable and using additional extension it is possible to enrich testing procedure without touching anything in tested code.
setuptools test and tox does not have such property.

from simplejson.

etrepum avatar etrepum commented on September 7, 2024

I suspect that the issue is in pytest because the tests have been structured in this way for about 15 years with quite a lot of users and this is the first time anything like this has ever come up.

from simplejson.

kloczek avatar kloczek commented on September 7, 2024

Issue is that pytest does not exist so long.
Even if you will execute pytest in project source root you may see exactly the same errors.

from simplejson.

kloczek avatar kloczek commented on September 7, 2024

FYI: I've asked for help on pytest discuss forum pytest-dev/pytest#8978

from simplejson.

kloczek avatar kloczek commented on September 7, 2024

Yep .. and Thank you very much for your help :)

Closing ticket.

from simplejson.

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.