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)
- Dead paper link in comments
- 2.2.0: change in tagging convention? 🤔 HOT 8
- Abnormal situation of converting "mpz" to "str" HOT 4
- gmpy2 Sieve Example Code Problem HOT 10
- Add .bit_count() to xmpz type
- Type declarations to allow integration with type checking and linting tools HOT 2
- Probably incorrect error message. HOT 21
- Invalid mpq.__float__? HOT 5
- Intentional fallthroughs?
- Intentional fallthroughs? HOT 2
- format() should take into account rounding mode of the context?
- Incorrect signature for gmpy2.digits() in docs
- "Invalid conversion specification" error for align '=' value in format spec HOT 1
- Change defaults for format-style printing? HOT 1
- Conversion from mpz to numpy longdouble is incorrect HOT 10
- support in using gmpy2 HOT 6
- gmpy2 does not support trillion-digit Pi calculations. HOT 6
- Memory leak in gmpy2_cache HOT 9
- Memory leak when using gmpy2.ieee context manager HOT 3
- Access to abs() from C interface 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.