Updates:
        Cc: jorn.baayen fredrik.johansson
        Labels: -Priority-Medium Priority-Critical

Comment #8 on issue 1947 by asmeurer: @property methods doctests do not give correct line numbers
http://code.google.com/p/sympy/issues/detail?id=1947

After pushing this in, it revealed some test failures in secondquant:

________________________________________________________________________________
_______________ sympy.physics.secondquant.NO.has_q_annihilators ________________ File "/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/secondquant.py", line 12, in sympy.physics.secondquant.NO.has_q_annihilators
Failed example:
    no_pq.has_q_annihilators
Exception raised:
    Traceback (most recent call last):
      File "/sw/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
File "<doctest sympy.physics.secondquant.NO.has_q_annihilators[4]>", line 1, in <module>
        no_pq.has_q_annihilators
    AttributeError: 'Mul' object has no attribute 'has_q_annihilators'
**********************************************************************
File "/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/secondquant.py", line 15, in sympy.physics.secondquant.NO.has_q_annihilators
Failed example:
    no_pq.has_q_annihilators
Exception raised:
    Traceback (most recent call last):
      File "/sw/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
File "<doctest sympy.physics.secondquant.NO.has_q_annihilators[6]>", line 1, in <module>
        no_pq.has_q_annihilators
    AttributeError: 'Mul' object has no attribute 'has_q_annihilators'
________________________________________________________________________________
_________________ sympy.physics.secondquant.NO.has_q_creators __________________ File "/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/secondquant.py", line 12, in sympy.physics.secondquant.NO.has_q_creators
Failed example:
    no_pq.has_q_creators
Exception raised:
    Traceback (most recent call last):
      File "/sw/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
File "<doctest sympy.physics.secondquant.NO.has_q_creators[4]>", line 1, in <module>
        no_pq.has_q_creators
    AttributeError: 'Mul' object has no attribute 'has_q_creators'
**********************************************************************
File "/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/secondquant.py", line 15, in sympy.physics.secondquant.NO.has_q_creators
Failed example:
    no_pq.has_q_creators
Exception raised:
    Traceback (most recent call last):
      File "/sw/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
File "<doctest sympy.physics.secondquant.NO.has_q_creators[6]>", line 1, in <module>
        no_pq.has_q_creators
    AttributeError: 'Mul' object has no attribute 'has_q_creators'

Once again, Øyvind, I have absolutely no idea how to fix these. (p.s., this commit has upped the number of doctests in the secondquant module tested by the runner from 18 to 45. A pretty important fix, i'd say)

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
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-issues?hl=en.

Reply via email to