And with Python 3 support on beta4 on Mac OS X 10.11.6, a single verifiable 
doctest failure on ptestlong, of which only the first one is an actual 
failure (the rest depend on it).  I note that if I run the first test by 
hand, it not only works but A and B give the long name based on pid and so 
forth correctly.

sage -t --long src/sage/misc/sageinspect.py
**********************************************************************
File "src/sage/misc/sageinspect.py", line 2132, in 
sage.misc.sageinspect._sage_getsourcelines_name_with_dot
Failed example:
    cython('''
    class A:
        def __init__(self):
            "some init doc"
            pass
    class B:
        "some class doc"
        class A(A):
            pass
    ''')
Exception raised:
    Traceback (most recent call last):
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 1123, in compile_and_execute
        exec(compiled, globs)
      File "<doctest 
sage.misc.sageinspect._sage_getsourcelines_name_with_dot[3]>", line 10, in 
<module>
        ''')
      File "sage/misc/lazy_import.pyx", line 353, in 
sage.misc.lazy_import.LazyImport.__call__ 
(build/cythonized/sage/misc/lazy_import.c:3686)
        return self.get_object()(*args, **kwds)
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/misc/cython.py",
 
line 599, in cython_compile
        return cython_import_all(tmpfile, get_globals(), **kwds)
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/misc/cython.py",
 
line 489, in cython_import_all
        m = cython_import(filename, **kwds)
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/misc/cython.py",
 
line 469, in cython_import
        return builtins.__import__(name)
    ModuleNotFoundError: No module named 
'_Users_...__sage_temp_GC06259_23216_tmp_lqbw2l0c_pyx_0'
**********************************************************************
File "src/sage/misc/sageinspect.py", line 2142, in 
sage.misc.sageinspect._sage_getsourcelines_name_with_dot
Failed example:
    B.A.__name__
Exception raised:
    Traceback (most recent call last):
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 1123, in compile_and_execute
        exec(compiled, globs)
      File "<doctest 
sage.misc.sageinspect._sage_getsourcelines_name_with_dot[4]>", line 1, in 
<module>
        B.A.__name__
    NameError: name 'B' is not defined
**********************************************************************
File "src/sage/misc/sageinspect.py", line 2144, in 
sage.misc.sageinspect._sage_getsourcelines_name_with_dot
Failed example:
    B.A.__qualname__
Exception raised:
    Traceback (most recent call last):
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 1123, in compile_and_execute
        exec(compiled, globs)
      File "<doctest 
sage.misc.sageinspect._sage_getsourcelines_name_with_dot[5]>", line 1, in 
<module>
        B.A.__qualname__
    NameError: name 'B' is not defined
**********************************************************************
File "src/sage/misc/sageinspect.py", line 2146, in 
sage.misc.sageinspect._sage_getsourcelines_name_with_dot
Failed example:
    sage_getsource(B.A)
Exception raised:
    Traceback (most recent call last):
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/Users/.../testpy3sage/sage-9.0.beta4-py3/sage-9.0.beta4/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 1123, in compile_and_execute
        exec(compiled, globs)
      File "<doctest 
sage.misc.sageinspect._sage_getsourcelines_name_with_dot[6]>", line 1, in 
<module>
        sage_getsource(B.A)
    NameError: name 'B' is not defined
**********************************************************************
1 item had failures:
   4 of   8 in sage.misc.sageinspect._sage_getsourcelines_name_with_dot
    [339 tests, 4 failures, 18.87 s]

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/de3e3ddc-a5f9-4b5e-a8e9-ef87f1cb9241%40googlegroups.com.

Reply via email to