* *I have been searching the docs on how testing works and how to get information from a test on http://docs.sympy.org/dev/modules/utilities/runtests.html.
>From my understanding, there is a tests folder for most sections of SymPy that contain test functions. If I run a 'test' on a file, how can I get the results of the test? Results such as, the sys.error if the test failed, and one of these<http://docs.sympy.org/dev/modules/utilities/runtests.html#sympy.utilities.runtests.test>symbols? Some things I have tried: from sympy.utilities.runtests import PyTestReporter, SymPyTests,sympytestfile,doctest reporter = PyTestReporter() z= SymPyTests(reporter).get_test_files("sympy\\utilities") for file in z: print sympytestfile(file) from sympy.utilities.runtests import PyTestReporter, SymPyTests,sympytestfile reporter = PyTestReporter() z= SymPyTests(reporter).get_test_files("sympy\\utilities") for file in z: SymPyTests(reporter).test_file(file) from sympy.utilities.runtests import PyTestReporter, SymPyTests,sympytestfile,test reporter = PyTestReporter() z= SymPyTests(reporter).get_test_files("sympy\\utilities") for file in z: print test(file) #seems to just give out False print doctest(file) #seems to give True/False Thanks. -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/LZdgUo-O4kEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
