Issue 1141: sympy/core/tests/test_var.py fails when executed 2x inside one  
python session
http://code.google.com/p/sympy/issues/detail?id=1141

New issue report by ondrej.certik:
In [1]: test("sympy/core/tests/test_var.py")
============================= test process starts
==============================
py.test like reporting.

sympy/core/tests/test_var.py[3] ...

=================== tests finished: 3 passed in 0.00 seconds
===================
Out[1]: True

In [2]: test("sympy/core/tests/test_var.py")
============================= test process starts
==============================
py.test like reporting.

sympy/core/tests/test_var.py[3] E..

_______________________ These tests raised an exception
________________________
sympy/core/tests/test_var.py:test_var
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)

/home/ondra/repos/sympy/sympy/utilities/runtests.pyc in
test_file(self=<sympy.utilities.runtests.SymPyTests object at 0x8b0cfcc>,
filename='/home/ondra/repos/sympy/sympy/core/tests/test_var.py')
     141             self._reporter.entering_test(f)
     142             try:
--> 143                 f()
         global c = undefined
         global C = undefined
         global s = undefined
         global i = undefined
         global d = undefined
         global _ = undefined
         global S = undefined
         global Ni = undefined
         t = <type 'exceptions.Exception'>
         global Rz = undefined
         global R = undefined
         sympy = <module 'sympy' from 'sympy/__init__.pyc'>
         global utilities = undefined
         global runtests.pyRO = undefined
         global E = undefined
         global s0 = undefined
         f = <function test_var_accepts_comma at 0x8d32b1c>
         global Nt = undefined
         global RA = undefined
         global runtests.pyRR = undefined
         global I = undefined
         global s.i = undefined
         global Ns = undefined
         global Failed = undefined
         global to = undefined
         global RU = undefined
         global runtests.pyR = undefined
         global M = undefined
         global RG = undefined
         global RH = undefined
         global R.RK = undefined
         global RT = undefined
         global RL = undefined
         global RP = undefined
         global RQ = undefined
         global RN = undefined
         global RS = undefined
         global RO = undefined
         global RR = undefined
         global timeitR = undefined
         global Rt = undefined
         global runtests.pys = undefined
         module = <module 'test_var' from
'/home/ondra/repos/sympy/sympy/core/tests/test_var.pyc'>
     144             except KeyboardInterrupt:
     145                 raise

/home/ondra/repos/sympy/sympy/core/tests/test_var.pyc in test_var()
      35
      36     # see if var() really injects into global namespace
---> 37     raises(NameError, "z1")
      38     make_z1()
      39     assert z1 == Symbol("z1")

/home/ondra/repos/sympy/sympy/utilities/pytest.pyc in
raises(ExpectedException=<type 'exceptions.NameError'>, code='z1')
      20     except ExpectedException:
      21         return
---> 22     raise Exception("DID NOT RAISE")
      23
      24 if disabled:

Exception: DID NOT RAISE

============ tests finished: 2 passed, 1 exceptions in 0.00 seconds
============
DO *NOT* COMMIT!
Out[2]: False



Issue attributes:
        Status: Accepted
        Owner: ----
        Labels: Type-Defect Priority-High

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com
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