Comments (7)
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.
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.
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.
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.
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.
FYI: I've asked for help on pytest discuss forum pytest-dev/pytest#8978
from simplejson.
Yep .. and Thank you very much for your help :)
Closing ticket.
from simplejson.
Related Issues (20)
- GA test simplejson on python 3.10 is failed HOT 1
- decimal.Decimal serialization error in Google Cloud Run HOT 2
- Design Question about `JSONDecodeError` HOT 8
- Any plans to simplify customising `float` representation? HOT 3
- `loads()` returns ValueError when the invalid unicode escape sequence is given HOT 1
- Comment error HOT 1
- Passing a NamedTuple **class** rather than instance to `.dumps` results in an error HOT 3
- Support 128-bit integers using int_as_string_bitcount HOT 1
- Support Pyodide/ Jupyterlite HOT 3
- simplejson/_speedups.c is missing in 3.18.2 sdist HOT 4
- using generators - missing iterencode _one_shot argument HOT 1
- Is it possible to serialize a class without instanciating a dict? (ie: use a generator) HOT 1
- Support Python 3.12 + provide cp312 wheels HOT 1
- JSON is not a subset of YAML HOT 3
- Simplejson not working (Python) HOT 1
- Add support for UUID HOT 1
- Broken support for encoding MagicMock objects HOT 1
- Would you be open for a PR with a "preprocess" object hook in the encoder? HOT 4
- 3.19.1 contained a breaking change by changing `allow_nan` to default to false HOT 7
- Decoding error when loading Infinity HOT 3
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 simplejson.