Comment #9 on issue 1641 by smichr: doctests require newline only when run  
for single file
http://code.google.com/p/sympy/issues/detail?id=1641

There's something history dependent...I just started a new interpreter  
session:

PythonWin 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit  
(Intel)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for  
further
copyright information.
>>> import sympy
>>> sympy.doctest()
============================= test process starts  
==============================
.
. no failures
.
Testing  C:\Documents and  
Settings\chris\sympy\doc\src\modules\statistics.txt
Failed 0, tested 26
True


The last time I did this I had many failures in tutorial.txt. So  
immediately after
the above, I did

>>> from sympy import *
>>> sympy.doctest()

and then a single error was raised:
.
. omitted non-error raising lines
.
**********************************************************************
File "C:\Documents and Settings\chris\sympy\doc\src\modules\queries.txt",  
line 365,
in queries.txt
Failed example:
     ask(a, Q.prime)
Exception raised:
     Traceback (most recent call last):
       File "C:\Python26\lib\doctest.py", line 1241, in __run
         compileflags, 1) in test.globs
       File "<doctest queries.txt[79]>", line 1, in <module>
         ask(a, Q.prime)
       File "C:\Documents and  
Settings\chris\sympy\sympy\queries\__init__.py", line
75, in ask
         res = getattr(handler, subclass.__name__)(expr, assumptions)
       File "<doctest queries.txt[76]>", line 4, in MyType
         return True
     NameError: global name 'True' is not defined
**********************************************************************
1 items had failures:
    1 of  80 in queries.txt
***Test Failed*** 1 failures.
.
. omitted non-error raising lines
.

>>> sympy.doctest()

same results with the singe error.

/c

--
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 [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