This is now Sage Trac ticket 28928:
https://trac.sagemath.org/ticket/28928
Le lundi 30 décembre 2019 12:00:07 UTC-5, Simon King a écrit :
>
> Hi Samuel,
>
> did you open a ticket for the problem in sageinspect?
>
> Best regards,
> Simon
>
> On Saturday, December 28, 2019 at 8:12:31 AM UTC+1, Samuel Lelievre wrote:
>>
>> Thu 2019-12-26 à 23:24 UTC, Volker Braun:
>> >
>> > 746a826377 (trac/develop, tag: 9.0.rc0) Updated SageMath version to
>> 9.0.rc0
>>
>>
>> Computer, OS, build choices:
>>
>> - iMac, Mid 2015
>> - macOS 10.14.6 Mojave
>> - build for Python 2
>> - build Sage's `gcc` and `openssl` packages
>> - build Sage's Python with its `_ssl` and `_tkinter` modules
>>
>> Running `make testlong` gave 2 failing doctests
>> in the file `src/sage/misc/sageinspect.py`.
>>
>> Running the tests for that file again gave 6 failing doctests.
>>
>> Excerpts from the terminal session follow.
>>
>>
>> ```bash
>> $ make testlong
>>
>> [...]
>>
>> ----------------------------------------------------------------------
>> sage -t --long --warn-long 50.2 src/sage/misc/sageinspect.py # 2
>> doctests failed
>> ----------------------------------------------------------------------
>> Total time for all tests: 11201.1 seconds
>> cpu time: 8574.9 seconds
>> cumulative wall time: 10884.3 seconds
>> make: *** [testlong] Error 1
>> ```
>>
>>
>> ```bash
>> $ ./sage -t --long --warn-long 50.2 src/sage/misc/sageinspect.py
>> Running doctests with ID 2019-12-27-15-55-47-4a6bf556.
>> Git branch: develop
>> Using --optional=build,dochtml,mpir,python2,sage
>> Doctesting 1 file.
>> sage -t --long --warn-long 50.2 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/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>
>>
>> line 681, in _run
>> self.compile_and_execute(example, compiler, test.globs)
>> File
>> "/Users/lelievre/s/sage2gcc/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/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/misc/cython.py",
>>
>>
>> line 634, in cython_compile
>> return cython_import_all(tmpfile, get_globals(), **kwds)
>> File
>> "/Users/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/misc/cython.py",
>>
>>
>> line 524, in cython_import_all
>> m = cython_import(filename, **kwds)
>> File
>> "/Users/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/misc/cython.py",
>>
>>
>> line 504, in cython_import
>> return builtins.__import__(name)
>> ModuleNotFoundError: No module named
>> '_Users_lelievre__sage_temp_Ghost_80496_tmp_2caqjln__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/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>
>>
>> line 681, in _run
>> self.compile_and_execute(example, compiler, test.globs)
>> File
>> "/Users/lelievre/s/sage2gcc/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/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>
>>
>> line 681, in _run
>> self.compile_and_execute(example, compiler, test.globs)
>> File
>> "/Users/lelievre/s/sage2gcc/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/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>
>>
>> line 681, in _run
>> self.compile_and_execute(example, compiler, test.globs)
>> File
>> "/Users/lelievre/s/sage2gcc/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
>> **********************************************************************
>> File "src/sage/misc/sageinspect.py", line 2281, in
>> sage.misc.sageinspect.sage_getsourcelines
>> Failed example:
>> cython('''cpdef test_funct(x,y): return''')
>> Exception raised:
>> Traceback (most recent call last):
>> File
>> "/Users/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>
>>
>> line 681, in _run
>> self.compile_and_execute(example, compiler, test.globs)
>> File
>> "/Users/lelievre/s/sage2gcc/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[6]>",
>> line 1, in <module>
>> cython('''cpdef test_funct(x,y): return''')
>> 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/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/misc/cython.py",
>>
>>
>> line 634, in cython_compile
>> return cython_import_all(tmpfile, get_globals(), **kwds)
>> File
>> "/Users/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/misc/cython.py",
>>
>>
>> line 524, in cython_import_all
>> m = cython_import(filename, **kwds)
>> File
>> "/Users/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/misc/cython.py",
>>
>>
>> line 504, in cython_import
>> return builtins.__import__(name)
>> ModuleNotFoundError: No module named
>> '_Users_lelievre__sage_temp_Ghost_80496_tmp_hgs_sryh_pyx_0'
>> **********************************************************************
>> File "src/sage/misc/sageinspect.py", line 2282, in
>> sage.misc.sageinspect.sage_getsourcelines
>> Failed example:
>> sage_getsourcelines(test_funct)
>> Exception raised:
>> Traceback (most recent call last):
>> File
>> "/Users/lelievre/s/sage2gcc/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>
>>
>> line 681, in _run
>> self.compile_and_execute(example, compiler, test.globs)
>> File
>> "/Users/lelievre/s/sage2gcc/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[7]>",
>> line 1, in <module>
>> sage_getsourcelines(test_funct)
>> NameError: name 'test_funct' is not defined
>> **********************************************************************
>> 2 items had failures:
>> 4 of 8 in sage.misc.sageinspect._sage_getsourcelines_name_with_dot
>> 2 of 31 in sage.misc.sageinspect.sage_getsourcelines
>> [339 tests, 6 failures, 10.85 s]
>> ----------------------------------------------------------------------
>> sage -t --long --warn-long 50.2 src/sage/misc/sageinspect.py # 6
>> doctests failed
>> ----------------------------------------------------------------------
>> Total time for all tests: 11.1 seconds
>> cpu time: 3.0 seconds
>> cumulative wall time: 10.8 seconds
>> ```
>>
>>
>> Note: similar failures observed with Sage 9.0.beta10
>> built for Python 3 on the same computer. See report:
>>
>> https://groups.google.com/d/msg/sage-release/76M2EI3qs28/xqvxde_6BQAJ
>>
>
--
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/d4972698-9df0-4389-8ecd-126723a040ff%40googlegroups.com.