예제 #1
0
"""
Script for testing the installation.

Mainly used for Travis-CI.

Can be expand tof more verbose testing and coverage.  

See NumPy/SciPy examples.
"""
import sys

sys.path.pop(0)

import pyamg

result = pyamg.test()

print result

print "--------"
print result.wasSuccessful()

if result.wasSuccessful():
    sys.exit(0)
else:
    sys.exit(1)
예제 #2
0
import sys

print("sys.platform = ", sys.platform)
print("sys.version = ", sys.version)

import pyamg
pyamg.test(verbose=False)
예제 #3
0
import sys

print("sys.platform = ", sys.platform)
print("sys.version = ", sys.version)

import pyamg
pyamg.test(verbose=True)
예제 #4
0
import pyamg
pyamg.test()