File: test_symengine.py

package info (click to toggle)
sympy 1.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,784 kB
  • sloc: python: 460,598; xml: 359; makefile: 162; sh: 59; lisp: 4
file content (35 lines) | stat: -rwxr-xr-x 763 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
"""
Run tests involving SymEngine

These are separate from the other optional dependency tests because they need
to be run with the `USE_SYMENGINE=1` environment variable set.

Run this as:

    $ USE_SYMENGINE=1 bin/test_symengine.py

"""

TEST_LIST = [
    'sympy/physics/mechanics',
    'sympy/liealgebras',
]


if __name__ == "__main__":

    import os
    import sys
    os.environ["USE_SYMENGINE"] = "1"

    # Add the local SymPy to sys.path (needed for CI)
    from get_sympy import path_hack
    path_hack()
    import sympy

    # Note: The doctests are not tested here but there are many failures when
    # running them with symengine.
    args = TEST_LIST
    exit_code = sympy.test(*args, verbose=True)
    sys.exit(exit_code)