On Mon, Sep 17, 2018 at 5:04 AM Andy Howell <a...@gamubaru.com> wrote: > > Steven, > > Thanks for confirming I'm an idiot:) I did have a test.py in there. Sorry for > the noise. Re-running the tests to make sure, but its almost certainly my > fault.
In fairness, that test is poorly written if merely having a file called test.py in your SAGE_ROOT can break it. I think I've been bitten by that one as well. It's not your fault. > On 09/16/2018 09:42 PM, Steven Trogdon wrote: > > Just guessing, but do you by chance have the file 'test.py' in SAGE_ROOT? I > think that's where it's looking. If so, remove it and repeat the tests. > > On Sunday, September 16, 2018 at 3:38:44 PM UTC-5, Andy Howell wrote: >> >> I'm getting two tests failing on Ubuntu 18.04.1 LTS >> >> sage -t --long --warn-long 39.4 src/sage/repl/attach.py # 7 doctests failed >> sage -t --long --warn-long 39.4 src/sage/repl/load.py # 1 doctest failed >> >> I did an incremental build and the test failed. I did a distclean, >> rebuild, and ran ptestlong again. It still fails. >> >> Log for failed tests below. >> >> Regards, >> >> Andy >> >> >> sage -t --long --warn-long 39.4 src/sage/repl/attach.py >> ********************************************************************** >> File "src/sage/repl/attach.py", line 171, in >> sage.repl.attach.load_attach_path >> Failed example: >> attach('test.py') >> Expected: >> Traceback (most recent call last): >> ... >> IOError: did not find file 'test.py' to load or attach >> Got: >> <BLANKLINE> >> Traceback (most recent call last): >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 659, in _run >> self.compile_and_execute(example, compiler, test.globs) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 1070, in compile_and_execute >> exec(compiled, globs) >> File "<doctest sage.repl.attach.load_attach_path[5]>", line 1, in >> <module> >> attach('test.py') >> File "sage/misc/lazy_import.pyx", line 354, in >> sage.misc.lazy_import.LazyImport.__call__ >> (build/cythonized/sage/misc/lazy_import.c:3759) >> return self.get_object()(*args, **kwds) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/attach.py", >> line 349, in attach >> load(filename, globals(), attach=True) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/load.py", >> line 243, in load >> exec(code, globals) >> File "./test.py", line 4, in <module> >> h=e^-x >> NameError: name 'e' is not defined >> ********************************************************************** >> File "src/sage/repl/attach.py", line 176, in >> sage.repl.attach.load_attach_path >> Failed example: >> attach('test.py') >> Exception raised: >> Traceback (most recent call last): >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 659, in _run >> self.compile_and_execute(example, compiler, test.globs) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 1070, in compile_and_execute >> exec(compiled, globs) >> File "<doctest sage.repl.attach.load_attach_path[7]>", line 1, in >> <module> >> attach('test.py') >> File "sage/misc/lazy_import.pyx", line 354, in >> sage.misc.lazy_import.LazyImport.__call__ >> (build/cythonized/sage/misc/lazy_import.c:3759) >> return self.get_object()(*args, **kwds) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/attach.py", >> line 349, in attach >> load(filename, globals(), attach=True) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/load.py", >> line 243, in load >> exec(code, globals) >> File "./test.py", line 4, in <module> >> h=e^-x >> NameError: name 'e' is not defined >> ********************************************************************** >> File "src/sage/repl/attach.py", line 178, in >> sage.repl.attach.load_attach_path >> Failed example: >> attached_files() == [fullpath] >> Expected: >> True >> Got: >> False >> ********************************************************************** >> File "src/sage/repl/attach.py", line 183, in >> sage.repl.attach.load_attach_path >> Failed example: >> load('test.py') >> Expected: >> Traceback (most recent call last): >> ... >> IOError: did not find file 'test.py' to load or attach >> Got: >> <BLANKLINE> >> Traceback (most recent call last): >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 659, in _run >> self.compile_and_execute(example, compiler, test.globs) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 1070, in compile_and_execute >> exec(compiled, globs) >> File "<doctest sage.repl.attach.load_attach_path[11]>", line 1, in >> <module> >> load('test.py') >> File "sage/misc/persist.pyx", line 136, in sage.misc.persist.load >> (build/cythonized/sage/misc/persist.c:2440) >> sage.repl.load.load(filename, globals()) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/load.py", >> line 243, in load >> exec(code, globals) >> File "./test.py", line 4, in <module> >> h=e^-x >> File "sage/structure/element.pyx", line 955, in >> sage.structure.element.Element.__xor__ >> (build/cythonized/sage/structure/element.c:9013) >> raise RuntimeError("Use ** for exponentiation, not '^', which >> means xor\n"+\ >> RuntimeError: Use ** for exponentiation, not '^', which means xor >> in Python, and has the wrong precedence. >> ********************************************************************** >> File "src/sage/repl/attach.py", line 436, in sage.repl.attach.detach >> Failed example: >> attach('test.py') >> Exception raised: >> Traceback (most recent call last): >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 659, in _run >> self.compile_and_execute(example, compiler, test.globs) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 1070, in compile_and_execute >> exec(compiled, globs) >> File "<doctest sage.repl.attach.detach[13]>", line 1, in <module> >> attach('test.py') >> File "sage/misc/lazy_import.pyx", line 354, in >> sage.misc.lazy_import.LazyImport.__call__ >> (build/cythonized/sage/misc/lazy_import.c:3759) >> return self.get_object()(*args, **kwds) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/attach.py", >> line 349, in attach >> load(filename, globals(), attach=True) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/load.py", >> line 243, in load >> exec(code, globals) >> File "./test.py", line 4, in <module> >> h=e^-x >> NameError: name 'e' is not defined >> ********************************************************************** >> File "src/sage/repl/attach.py", line 438, in sage.repl.attach.detach >> Failed example: >> attached_files() == [os.path.normpath(fullpath)] >> Expected: >> True >> Got: >> False >> ********************************************************************** >> File "src/sage/repl/attach.py", line 443, in sage.repl.attach.detach >> Failed example: >> attach('test.py') >> Exception raised: >> Traceback (most recent call last): >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 659, in _run >> self.compile_and_execute(example, compiler, test.globs) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 1070, in compile_and_execute >> exec(compiled, globs) >> File "<doctest sage.repl.attach.detach[17]>", line 1, in <module> >> attach('test.py') >> File "sage/misc/lazy_import.pyx", line 354, in >> sage.misc.lazy_import.LazyImport.__call__ >> (build/cythonized/sage/misc/lazy_import.c:3759) >> return self.get_object()(*args, **kwds) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/attach.py", >> line 349, in attach >> load(filename, globals(), attach=True) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/load.py", >> line 243, in load >> exec(code, globals) >> File "./test.py", line 4, in <module> >> h=e^-x >> NameError: name 'e' is not defined >> >> >> sage -t --long --warn-long 39.4 src/sage/repl/load.py >> ********************************************************************** >> File "src/sage/repl/load.py", line 180, in sage.repl.load.load >> Failed example: >> attach(fname) >> Exception raised: >> Traceback (most recent call last): >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 659, in _run >> self.compile_and_execute(example, compiler, test.globs) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", >> line 1070, in compile_and_execute >> exec(compiled, globs) >> File "<doctest sage.repl.load.load[27]>", line 1, in <module> >> attach(fname) >> File "sage/misc/lazy_import.pyx", line 354, in >> sage.misc.lazy_import.LazyImport.__call__ >> (build/cythonized/sage/misc/lazy_import.c:3759) >> return self.get_object()(*args, **kwds) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/attach.py", >> line 349, in attach >> load(filename, globals(), attach=True) >> File >> "/home/andy/src/sagemath/sage/local/lib/python2.7/site-packages/sage/repl/load.py", >> line 243, in load >> exec(code, globals) >> File "./test.py", line 4, in <module> >> h=e^-x >> NameError: name 'e' is not defined >> ********************************************************************** >> >> On 09/15/2018 08:25 AM, Volker Braun wrote: >> > As always, you can get the latest beta version from the "develop" git >> > branch. Alternatively, the self-contained source tarball is at >> > http://www.sagemath.org/download-latest.html >> > >> > -- > 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 sage-release+unsubscr...@googlegroups.com. > To post to this group, send email to sage-release@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-release. > For more options, visit https://groups.google.com/d/optout. > > > -- > 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 sage-release+unsubscr...@googlegroups.com. > To post to this group, send email to sage-release@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-release. > For more options, visit https://groups.google.com/d/optout. -- 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 sage-release+unsubscr...@googlegroups.com. To post to this group, send email to sage-release@googlegroups.com. Visit this group at https://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.