[PATCH] Add an option to run tests in random order

2009-08-10 Thread Vinzent Steinberg
Just run >>> sympy.test(sort=False) or $ bin/test --random This is to make sure that the test are independent of each other. The motivation to do this is that sometimes tests in sympy are failing if not executed in a certain order, see [1]. [1] http://groups.google.com/group/sympy/browse_thre

Re: [PATCH] Add an option to run tests in random order

2009-08-10 Thread Ondrej Certik
The patch looks ok to me, please push it in. Let's see what happens. Ondrej On Mon, Aug 10, 2009 at 12:04 PM, Vinzent Steinberg wrote: > > Just run > sympy.test(sort=False) > > or > > $ bin/test --random > > This is to make sure that the test are independent of each other. The > motivation

Re: [PATCH] Add an option to run tests in random order

2009-08-10 Thread Vinzent Steinberg
Thanks, it's in. Vinzent 2009/8/10 Ondrej Certik > > The patch looks ok to me, please push it in. Let's see what happens. > > Ondrej --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post t

Re: [PATCH] Add an option to run tests in random order

2009-08-10 Thread Vinzent Steinberg
BTW: It makes no difference for me if I run the tests in random order (on a 32 bit platform). Vinzent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-

[PATCH 0/6] Refine module

2009-08-10 Thread Fabian Pedregosa
In the following series of patches, I implement a refine() method that simplifies expressions based on its assumptions. I also deleted some code from the old assumption system. All deleted code (and tests) are now in sympy/queries or in sympy/refine/ You can pull from my branch refine: git pul

[PATCH 1/6] logic module improvements

2009-08-10 Thread Fabian Pedregosa
Speed improvements and function fuzzy_not implemented --- sympy/logic/__init__.py |2 +- sympy/logic/boolalg.py | 19 --- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/sympy/logic/__init__.py b/sympy/logic/__init__.py index c09f403..d47f04c 100644 --- a/sy

[PATCH 3/6] Implement __mod__ in class Infinity

2009-08-10 Thread Fabian Pedregosa
oo % number now returns NaN instead of rasing an exception --- sympy/core/numbers.py|3 +++ sympy/core/tests/test_numbers.py |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/sympy/core/numbers.py b/sympy/core/numbers.py index 11a2b72..59e86e5 100644 --- a/s

[PATCH 4/6] Implement refine module

2009-08-10 Thread Fabian Pedregosa
This module is responsible for simplifying an expression given assumptions on its objects. --- sympy/__init__.py |1 + sympy/refine/__init__.py | 82 + sympy/refine/tests/test_refine.py | 36 3 files changed, 11

[PATCH 2/6] queries module improvements

2009-08-10 Thread Fabian Pedregosa
Some code has been simplified, added docstring, bugs fixed and test added. --- sympy/queries/__init__.py | 15 --- sympy/queries/handlers/__init__.py |4 +++- sympy/queries/handlers/calculus.py |4 +++- sympy/queries/handlers/ntheory.py |2 +- sympy/queries/han

[PATCH 5/6] Remove code related to .is_even and .is_odd from core classes

2009-08-10 Thread Fabian Pedregosa
No behaviour has changed, except for: - Real ** Even does not always get symplified by refine() to abs(Real) ** Even, only in the case of nested powers. This is now the same behaviour as Mathematica. Relevant tests moved to queries/test/test_queries.py and refine/tests/test_refine.p

[PATCH 6/6] Remove code related to .is_even from functions.elementary.complexes

2009-08-10 Thread Fabian Pedregosa
Now refine() takes care of this. Relevants test appear in refine/tests/test_refine.py --- sympy/functions/elementary/complexes.py|9 ++--- sympy/functions/elementary/tests/test_complexes.py | 14 -- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a

Re: [PATCH 0/6] Refine module

2009-08-10 Thread Ondrej Certik
On Mon, Aug 10, 2009 at 5:34 PM, Fabian Pedregosa wrote: > > In the following series of patches, I implement a refine() method that > simplifies > expressions based on its assumptions. > > I also deleted some code from the old assumption system. All deleted code > (and tests) > are now in sympy/

Re: [PATCH 6/6] Remove code related to .is_even from functions.elementary.complexes

2009-08-10 Thread Ondrej Certik
On Mon, Aug 10, 2009 at 5:34 PM, Fabian Pedregosa wrote: > > Now refine() takes care of this. Relevants test appear in > refine/tests/test_refine.py > --- >  sympy/functions/elementary/complexes.py            |    9 ++--- >  sympy/functions/elementary/tests/test_complexes.py |   14 --

Re: [PATCH 0/6] Refine module

2009-08-10 Thread Fabian Pedregosa Izquierdo
Ondrej Certik wrote: > On Mon, Aug 10, 2009 at 5:34 PM, Fabian Pedregosa wrote: >> In the following series of patches, I implement a refine() method that >> simplifies >> expressions based on its assumptions. >> >> I also deleted some code from the old assumption system. All deleted code >> (and

Re: [PATCH 6/6] Remove code related to .is_even from functions.elementary.complexes

2009-08-10 Thread Fabian Pedregosa Izquierdo
Ondrej Certik wrote: > On Mon, Aug 10, 2009 at 5:34 PM, Fabian Pedregosa wrote: >> Now refine() takes care of this. Relevants test appear in >> refine/tests/test_refine.py >> --- >> sympy/functions/elementary/complexes.py|9 ++--- >> sympy/functions/elementary/tests/test_comp

Re: [PATCH 0/6] Refine module

2009-08-10 Thread Ondrej Certik
Ubuntu, 64 bits. Ondrej On Mon, Aug 10, 2009 at 6:31 PM, Fabian Pedregosa Izquierdo wrote: > > Ondrej Certik wrote: >> On Mon, Aug 10, 2009 at 5:34 PM, Fabian Pedregosa wrote: >>> In the following series of patches, I implement a refine() method that >>> simplifies >>> expressions based on its

Re: [PATCH 0/6] Refine module

2009-08-10 Thread Ondrej Certik
e.g. python2.6. On Mon, Aug 10, 2009 at 8:08 PM, Ondrej Certik wrote: > Ubuntu, 64 bits. > > Ondrej > > On Mon, Aug 10, 2009 at 6:31 PM, Fabian Pedregosa > Izquierdo wrote: >> >> Ondrej Certik wrote: >>> On Mon, Aug 10, 2009 at 5:34 PM, Fabian Pedregosa wrote: In the following series of patc

Re: [PATCH 0/6] Refine module

2009-08-10 Thread Ondrej Certik
e.g. python2.6. On Mon, Aug 10, 2009 at 8:08 PM, Ondrej Certik wrote: > Ubuntu, 64 bits. > > Ondrej > > On Mon, Aug 10, 2009 at 6:31 PM, Fabian Pedregosa > Izquierdo wrote: >> >> Ondrej Certik wrote: >>> On Mon, Aug 10, 2009 at 5:34 PM, Fabian Pedregosa wrote: In the following series of patc

Re: [PATCH 6/6] Remove code related to .is_even from functions.elementary.complexes

2009-08-10 Thread Ondrej Certik
On Mon, Aug 10, 2009 at 6:33 PM, Fabian Pedregosa Izquierdo wrote: > > Ondrej Certik wrote: >> On Mon, Aug 10, 2009 at 5:34 PM, Fabian Pedregosa wrote: >>> Now refine() takes care of this. Relevants test appear in >>> refine/tests/test_refine.py >>> --- >>>  sympy/functions/elementary/complexes.p

Re: Improve test runner

2009-08-10 Thread smichr
Everything used to work...now nothing gets run under windows XP: C:\DOCUME~2\chris\sympy\sympy>\python26\python.exe ..\bin\test core = test process starts == executable: C:\python26\python.exe (2.6.1-final-0) === tests