Status of GA_rewrite

29 views
Skip to first unread message

Alan Bromborsky

unread,
Apr 6, 2013, 9:41:46 AM4/6/13
to sy...@googlegroups.com
On my system if I blacklist the examples that use pdflatex the sympy-bot
tests are passed. If I don't blacklist the examples that use pdflatex
the sympy-bot tests fail (there are no docstring tests in the examples),
but no errors are shown in the test report. Is there a switch for
sympy-bot for more verbose reporting?

thomas hisch

unread,
Apr 6, 2013, 10:23:08 AM4/6/13
to sy...@googlegroups.com
Could you run only the doctests - you have to set the testcommand in your bot config file to bin/doctest  -v 

thomas hisch

unread,
Apr 6, 2013, 10:34:33 AM4/6/13
to sy...@googlegroups.com
BTW, remove the print statements from test_test.py as they produce an irritating test output:

sympy/ga/tests/test_test.py[10] ..f
.f
.......                                  [OK]

Alan Bromborsky

unread,
Apr 6, 2013, 10:53:25 AM4/6/13
to sy...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
I did what you suggested (also removed prints from my tests) and sympy-bot fails, but there are no errors in test report.

Thomas Hisch

unread,
Apr 6, 2013, 11:11:17 AM4/6/13
to sy...@googlegroups.com
On Sat, Apr 6, 2013 at 4:53 PM, Alan Bromborsky <abr...@verizon.net> wrote:
> I did what you suggested (also removed prints from my tests) and sympy-bot
> fails, but there are no errors in test report.

Thats strange. Note that the finished line is missing from the output:

=========================== tests finished: 61 passed, in 31.83
seconds ============================

Can you reproduce this locally without running the bot ?

Alan Bromborsky

unread,
Apr 6, 2013, 11:13:38 AM4/6/13
to sy...@googlegroups.com
How do I run locally?

thomas hisch

unread,
Apr 6, 2013, 11:21:49 AM4/6/13
to sy...@googlegroups.com
./bin/doctest

to run a subset of the doctests pass the path of the 'subset' as well
./bin/docttest sympy/ga
runs all doctests in sympy/ga

try to find out where exactly the doctester abnormally terminates
 

Alan Bromborsky

unread,
Apr 6, 2013, 12:00:47 PM4/6/13
to sy...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
If I run ./bin/doctest the last line in the output is -

sympy/solvers/solvers.py[12] ............                                                                                                                                       [OK]

and the remaining doctests not performed are -

examples/advanced/gibbs_phenomenon.py[2] ..                                 [OK]
examples/advanced/fem.py[1] .                                               [OK]
but they run if I blacklist my examples that use pdflatex.

If I run ./bin/doctest  sympy/ga the total output is -

=============================================================================== test process starts ================================================================================
executable:         /usr/bin/python  (2.7.3-final-0)
architecture:       64-bit
cache:              yes
ground types:       python
hash randomization: on (PYTHONHASHSEED=1354162837)

sympy/ga/vector.py[1] .                                                                                                                                                         [OK]
sympy/ga/ga.py[5] .....                                                                                                                                                         [OK]

==================================================================== tests finished: 6 passed, in 0.79 seconds =====================================================================


Any more suggestions please.



Thomas Hisch

unread,
Apr 6, 2013, 12:26:37 PM4/6/13
to sy...@googlegroups.com
Open a python shell and type (in the root dir of your sympy repo) and type

import sympy
sympy.doctest("sympy/solvers")

check if that kills the python process.

>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sympy" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sympy/ceLFZQCVgcY/unsubscribe?hl=en-US.
> To unsubscribe from this group and all its topics, send an email to

Alan Bromborsky

unread,
Apr 6, 2013, 12:40:04 PM4/6/13
to sy...@googlegroups.com
Results -

>>> import sympy
>>> sympy.doctest("sympy/solvers")
===============================================================================
test process starts
================================================================================
executable: /usr/bin/python (2.7.3-final-0)
architecture: 64-bit
cache: yes
ground types: python
hash randomization: on (PYTHONHASHSEED=2986032642)

sympy/solvers/ode.py[30] .............................. [OK]
sympy/solvers/inequalities.py[6] ...... [OK]
sympy/solvers/polysys.py[4] .... [OK]
sympy/solvers/pde.py[3] ... [OK]
sympy/solvers/recurr.py[5] ..... [OK]
sympy/solvers/__init__.py[1] . [OK]
sympy/solvers/solvers.py[12] ............ [OK]

===================================================================
tests finished: 61 passed, in 25.48 seconds
====================================================================
True
>>>


Thomas Hisch

unread,
Apr 6, 2013, 12:42:01 PM4/6/13
to sy...@googlegroups.com
Let's continue this discussion on IRC please

Alan Bromborsky

unread,
Apr 6, 2013, 12:46:34 PM4/6/13
to sy...@googlegroups.com
I has been so long since I used IRC I forget how to do it. I have to go
shopping now will contact you later.

Aaron Meurer

unread,
Apr 7, 2013, 2:47:13 AM4/7/13
to sy...@googlegroups.com
You can also just pass -t "bin/doctest -v" when you run sympy-bot.

Aaron Meurer

Aaron Meurer

unread,
Apr 7, 2013, 2:49:30 AM4/7/13
to sy...@googlegroups.com
Did you really mean to run sympy.doctest("ga")? If that returns True,
then sympy-bot should report it as passing (and visa-versa if it
returns False).

Aaron Meurer

Alan Bromborsky

unread,
Apr 10, 2013, 3:29:42 PM4/10/13
to sy...@googlegroups.com
On 04/06/2013 12:42 PM, Thomas Hisch wrote:
I have installed IRC client. Please let me know when it would be
convenient for you to advise me on IRC.

Alan Bromborsky

unread,
Apr 10, 2013, 3:55:18 PM4/10/13
to sy...@googlegroups.com
More information - I ran "bin/tests -v" and and "bin/doctest -v"
locally. Output is attached. Could find no errors.
doctest.log
test.log

Alan Bromborsky

unread,
Apr 10, 2013, 4:45:57 PM4/10/13
to sy...@googlegroups.com
More data - The last line on the doctest ouput is:

sympy/solvers/solvers.py[12]
okokokokokokokokokokokok [OK]

It should then execute -

examples/advanced/gibbs_phenomenon.py

and

examples/advanced/fem.py

If I go into the examples/advanced directory I can execute the two
examples with no errors.

Alan Bromborsky

unread,
Apr 10, 2013, 6:18:13 PM4/10/13
to sy...@googlegroups.com
Found the problem - It was in one of my examples. However, the problem
was difficult to diagnose because doctest does not indicate if it hangs
while running an example with no doctests in it. I added a print
statement to runtests.py to print the file name before the doctest for
that particular file was executed. I then removed the print statement
in the version I submitted, but you may want to include some such output
in runtests.py permanently.
Reply all
Reply to author
Forward
0 new messages