Comments (6)
I think that would be great. In the past, I tried to minimize the need for external libraries when compiling gmpy2. But the development world has changed.
Case
from gmpy.
I tried to minimize the need for external libraries when compiling gmpy2
pytest will be a requirement only for testing.
from gmpy.
pytest will be a requirement only for testing.
Understood.
from gmpy.
I like the pytest format.
I've started to add MPFR 4.2.x specific functions. What is the best way to handle version dependent tests?
I've thought of the following options:
-
A version specific file with the version check done in runtests.py. I don't like adding complications to runtests.py.
-
Place them in the same file (test_mpfr.py) and surround the tests with a version check. This keeps runtests.py simple but can make test_mpfr.py larger and (possibly) more difficult to understand.
-
Create a file called test_mpfr_v420.py that contains tests for functions added in MPFR 4.2.0 and add a single version check at the beginning of the file.
I prefer option 3 but I'm open to any other options.
from gmpy.
That depends on the number of tests. You can use skip or skipif decorators to exclude either a single test function or an entire test file. Separate test file, probably, does make sense if there are many tested functions and/or if we want keep that file forever. But I would expect that at some point new functions will be mandatory, so option 2 sounds better (or we can split test_mpfr.py to several pieces based on functionality tested, e.g. arithmetics, elementary functions, etc).
from gmpy.
Thank you 😄 👍
Do you have any plans to release final 2.2.0 soon? 🤔
(just asking 😋 )
from gmpy.
Related Issues (20)
- test failures with mpfr 4.2.1 (change in MPFR formatted functions) HOT 32
- New version? 🤔 HOT 15
- 2.1.5: test suite fails with errors `invalid option: '+SKIP_MPC_LESS_THAN_110'` HOT 9
- 2.1.5: *.h and *.pxd files are installed HOT 5
- Is the `is_strong_bpsw_prp` code correct? HOT 2
- Assessment of the difficulty in porting CPU architecture for the gmpy
- Description of `is_euler_prp` HOT 1
- mpz object missing to_bytes() method HOT 4
- complex conjugate crash HOT 2
- Linux wheels in the latest release (2.2.0a1) are broken HOT 10
- What is the paper that `is_extra_strong_lucas_prp` is referring to? HOT 4
- About the case where `k=0` is input to `lucasu_mod` and `lucasv_mod` HOT 2
- gmpy-2.1.5 fails to compile with python-3.12 HOT 11
- cython C-API is broken in published wheels (and in the build_wheels.yml CI workflow) HOT 9
- Pip install build fails, can't find mpc.h HOT 6
- Deprecate local_context()? HOT 18
- Impending release of gmpy2 2.2.0a2 HOT 10
- Issue with large factorial HOT 6
- Access to gmplib.org
- Alternatives to using private API for conversion to/from CPython int's HOT 1
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 gmpy.