Hey Daniel,
   Apologies for the lack of subject, that was a quick email. Thank you for
your response. I am running FiPy 3.0. The other methods you mentioned to
run the tests work well. If I do

$ python -c "import fipy; fipy.test()"

I get a bunch of stuff and then finally:

Ran 352 tests in 57.904s

OK

I was also able to run the tests with:

$ python setup.py test

And I get failures in polyxtal and polyxtalcoupled:

======================================================================
FAIL: polyxtal (examples.phase)
Doctest: examples.phase.polyxtal
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Enthought\lib\doctest.py", line 2166, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for examples.phase.polyxtal
  File "c:\software\fipy3_0\examples\phase\polyxtal.py", line 32, in
polyxtal

----------------------------------------------------------------------
File "c:\software\fipy3_0\examples\phase\polyxtal.py", line 333, in
examples.phase.polyxtal
Failed example:
    viewer.plot()
Exception raised:
    Traceback (most recent call last):
      File "C:\Enthought\lib\doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest examples.phase.polyxtal[55]>", line 1, in <module>
        viewer.plot()
    NameError: name 'viewer' is not defined


======================================================================
FAIL: polyxtalCoupled (examples.phase)
Doctest: examples.phase.polyxtalCoupled
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Enthought\lib\doctest.py", line 2166, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for examples.phase.polyxtalCoupled
  File "c:\software\fipy3_0\examples\phase\polyxtalCoupled.py", line 32, in
polyxtalCoupled

----------------------------------------------------------------------
File "c:\software\fipy3_0\examples\phase\polyxtalCoupled.py", line 334, in
examples.phase.polyxtalCoupled
Failed example:
    viewer.plot()
Exception raised:
    Traceback (most recent call last):
      File "C:\Enthought\lib\doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest examples.phase.polyxtalCoupled[55]>", line 1, in
<module>
        viewer.plot()
    NameError: name 'viewer' is not defined


----------------------------------------------------------------------
Ran 542 tests in 1060.653s

FAILED (failures=2)

Thanks again.

Salomon


On Wed, Jan 2, 2013 at 10:32 AM, Daniel Wheeler
<[email protected]>wrote:

> On Wed, Jan 2, 2013 at 10:16 AM, Salomon Turgman Cohen <[email protected]
> > wrote:
>
>> Dear list,
>>     I am having an issue running the tests for fipy. The end of the
>> output when issuing fipy.test() is :
>>
>
> Which version of FiPy?
>
>
>> ...
>>> ...
>>> mayavi version 4.1.0
>>> gmsh version 2.6.1
>>> To exit: use 'exit', 'quit', or Ctrl-D.An exception has occurred, use
>>> %tb to see the full traceback.
>>>
>>> SystemExit: error: Invalid argument
>>>
>>
>>    If I give %tb in ipython I get:
>>
>> SystemExit                                Traceback (most recent call
>> last)
>> <ipython-input-2-b541bb678baa> in <module>()
>> ----> 1 fipy.test()
>>
>> C:\Enthought\lib\site-packages\fipy\__init__.pyc in test(*args)
>>     168         import shutil
>>     169         shutil.rmtree(tmpDir)
>> --> 170         raise exitErr
>>
>> SystemExit: error: Invalid argument
>>
>>  I am running ipython 0.13.1, python 2.7.2, numpy 1.6.2, scipy 0.11.0,
>> and matplotlib 1.1.0 in Windows 7. I am starting to suspect that there is
>> something wrong with my ipython system but I cannot be sure.
>>
>
> I doubt that. It is probably an issue with using "fipy.test()". There are
> a few issues with it. For one,  you can't run "fipy.test()" twice in an
> ipython session
>
>    http://matforge.org/fipy/ticket/459
>
> What happens when if you do
>
>    $ python -c "import fipy; fipy.test()"
>
> at the command line using the windows command tool rather than using
> ipython?
>
>
>> fipy seems to be working OK when running the 1D diffusion example.
>>
>
> "fipy.test()" has only recently been implemented so that the tests can be
> run on installed versions of FiPy. Generally we use "python setup.py test"
> to run the tests, but you have an installed version of FiPy so that won't
> help you.
>
> Cheers
>
> --
> Daniel Wheeler
>
> _______________________________________________
> fipy mailing list
> [email protected]
> http://www.ctcms.nist.gov/fipy
>   [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
>
>


-- 
Salomon Turgman Cohen
Postdoctoral Associate
Cornell University
(919) 341-9650
_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
  • [no subject] Salomon Turgman Cohen
    • Re: Daniel Wheeler
      • Re: Salomon Turgman Cohen
        • Re: Daniel Wheeler

Reply via email to