Changes between Version 20 and Version 27 of Ticket #9921


Ignore:
Timestamp:
07/05/12 17:20:35 (9 years ago)
Author:
kcrisman
Comment:

This is ridiculous. Nose works fine at testing things on sage.math. It certainly finds various errors and warnings - apparently scipy generates a number as well, I just tried it.

The issue with it not passing its own tests is not so good, and I can confirm this in both cases. On the plus side, it only breaks the Sage installation process in the 1.1.3, so I would say let's go with the 1.1.2 for now.


I do get something weird, hopefully unrelated to nose itself, but instead related to our defaults for matplotlib.

kcrisman@sage:~/sage-5.1.beta1-boxen-x86_64-Linux$ ./sage -c 'import matplotlib; matplotlib.test()'
======================================================================
ERROR: Failure: OSError (No such file /home/kcrisman/sage-5.1.beta1-boxen-x86_64-Linux/import matplotlib; matplotlib.test())
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kcrisman/sage-5.1.beta1-boxen-x86_64-Linux/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/failure.py", line 39, in runTest
    raise self.exc_class(self.exc_val)
OSError: No such file /home/kcrisman/sage-5.1.beta1-boxen-x86_64-Linux/import matplotlib; matplotlib.test()

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)

sage: import matplotlib  
sage: matplotlib.test()
======================================================================
ERROR: Failure: ValueError (Unable to load tests from file /home/kcrisman/sage-5.1.beta1-boxen-x86_64-Linux/sage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kcrisman/sage-5.1.beta1-boxen-x86_64-Linux/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/loader.py", line 213, in loadTestsFromFile
    % filename)
ValueError: Unable to load tests from file /home/kcrisman/sage-5.1.beta1-boxen-x86_64-Linux/sage

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)
False

On a computer without nose:

sage: matplotlib.test()
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/Users/karl-dietercrisman/Downloads/sage-5.1.beta6/<ipython console> in <module>()

/Users/.../sage-5.1.beta6/local/lib/python2.7/site-packages/matplotlib/__init__.pyc in test(verbosity)
    986 def test(verbosity=0):
    987     """run the matplotlib test suite"""
--> 988     import nose
    989     import nose.plugins.builtin
    990     from testing.noseclasses import KnownFailure

ImportError: No module named nose

I think that in matplotlib's lib/init.py

    success = nose.run( defaultTest=default_test_modules,
                        config=config,
                        )

we aren't using the right default modules, they aren't imported or something. So it goes back to just looking at . for the default test module - I get the same thing.

sage: nose.run(defaultTest='.')                 
E
======================================================================
ERROR: Failure: ValueError (Unable to load tests from file /home/kcrisman/sage-5.1.beta1-boxen-x86_64-Linux/sage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kcrisman/sage-5.1.beta1-boxen-x86_64-Linux/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/loader.py", line 213, in loadTestsFromFile
    % filename)
ValueError: Unable to load tests from file /home/kcrisman/sage-5.1.beta1-boxen-x86_64-Linux/sage

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)
False

Can you see a reason why this shouldn't have positive review? I just think this must be a problem in how we're dealing with mpl. I'm surprised it does this; we only removed the baseline images, not the testing scripts!

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9921

    • Property Keywords sd41 added
    • Property Reviewers changed from to Karl-Dieter Crisman
  • Ticket #9921 – Description

    v20 v27  
    1616---------------
    1717
    18 New spkg: [http://sage.math.washington.edu/home/palmieri/SPKG/nose-1.1.2.spkg version 1.1.2], [http://sage.math.washington.edu/home/palmieri/SPKG/nose-1.1.3.git20120614.spkg version 1.1.3 from git]
     18New spkg: [http://sage.math.washington.edu/home/palmieri/SPKG/nose-1.1.2.spkg version 1.1.2].
     19
     20(Alternate spkg [http://sage.math.washington.edu/home/palmieri/SPKG/nose-1.1.3.git20120614.spkg version 1.1.3 from git].)
    1921
    2022Apply [attachment:trac_9921-nose-scripts.patch] to the scripts repo.