Git Product home page Git Product logo

Comments (6)

casevh avatar casevh commented on September 26, 2024

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.

skirpichev avatar skirpichev commented on September 26, 2024

I tried to minimize the need for external libraries when compiling gmpy2

pytest will be a requirement only for testing.

from gmpy.

casevh avatar casevh commented on September 26, 2024

pytest will be a requirement only for testing.

Understood.

from gmpy.

casevh avatar casevh commented on September 26, 2024

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:

  1. A version specific file with the version check done in runtests.py. I don't like adding complications to runtests.py.

  2. 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.

  3. 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.

skirpichev avatar skirpichev commented on September 26, 2024

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.

kloczek avatar kloczek commented on September 26, 2024

Thank you 😄 👍
Do you have any plans to release final 2.2.0 soon? 🤔
(just asking 😋 )

from gmpy.

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.