File: conftest.py

package info (click to toggle)
python-gmpy2 2.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,996 kB
  • sloc: ansic: 24,604; python: 4,911; makefile: 123
file content (21 lines) | stat: -rw-r--r-- 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import pytest

import gmpy2


collect_ignore_glob = ['*.txt']


@pytest.fixture(autouse=True, scope='function')
def _set_default_context():
    gmpy2.set_context(gmpy2.context())


def pytest_report_header(config):
    print("""
  Mutliple-precision library:     {0}
  Floating-point library:         {1}
  Complex library:                {2}
""".format(gmpy2.mp_version(),
           gmpy2.mpfr_version(),
           gmpy2.mpc_version()))