-
-
Notifications
You must be signed in to change notification settings - Fork 656
Closed
Milestone
Description
sage -t --long --random-seed=129865150212556213443045001147722733023 src/sage/rings/continued_fraction_gosper.py
**********************************************************************
File "src/sage/rings/continued_fraction_gosper.py", line 109, in sage.rings.continued_fraction_gosper.gosper_iterator.__iter__
Failed example:
lg = [next(ig) for _ in range(10)]; lcf = [next(icf) for _ in range(10)];
Exception raised:
Traceback (most recent call last):
File "/home/jonathan/Applications/sage/local/lib/python3.8/site-packages/sage/doctest/forker.py", line 694, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/jonathan/Applications/sage/local/lib/python3.8/site-packages/sage/doctest/forker.py", line 1088, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.rings.continued_fraction_gosper.gosper_iterator.__iter__[4]>", line 1, in <module>
lg = [next(ig) for _ in range(Integer(10))]; lcf = [next(icf) for _ in range(Integer(10))];
File "<doctest sage.rings.continued_fraction_gosper.gosper_iterator.__iter__[4]>", line 1, in <listcomp>
lg = [next(ig) for _ in range(Integer(10))]; lcf = [next(icf) for _ in range(Integer(10))];
File "/home/jonathan/Applications/sage/local/lib/python3.8/site-packages/sage/rings/continued_fraction_gosper.py", line 138, in __next__
raise StopIteration
StopIteration
**********************************************************************
File "src/sage/rings/continued_fraction_gosper.py", line 110, in sage.rings.continued_fraction_gosper.gosper_iterator.__iter__
Failed example:
lg == lcf
Exception raised:
Traceback (most recent call last):
File "/home/jonathan/Applications/sage/local/lib/python3.8/site-packages/sage/doctest/forker.py", line 694, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/jonathan/Applications/sage/local/lib/python3.8/site-packages/sage/doctest/forker.py", line 1088, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.rings.continued_fraction_gosper.gosper_iterator.__iter__[5]>", line 1, in <module>
lg == lcf
NameError: name 'lg' is not defined
**********************************************************************
File "src/sage/rings/continued_fraction_gosper.py", line 125, in sage.rings.continued_fraction_gosper.gosper_iterator.__next__
Failed example:
for i in range(10):
assert next(ig) == next(icf)
Exception raised:
Traceback (most recent call last):
File "/home/jonathan/Applications/sage/local/lib/python3.8/site-packages/sage/doctest/forker.py", line 694, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/jonathan/Applications/sage/local/lib/python3.8/site-packages/sage/doctest/forker.py", line 1088, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.rings.continued_fraction_gosper.gosper_iterator.__next__[4]>", line 2, in <module>
assert next(ig) == next(icf)
File "/home/jonathan/Applications/sage/local/lib/python3.8/site-packages/sage/rings/continued_fraction_gosper.py", line 138, in __next__
raise StopIteration
StopIteration
**********************************************************************
2 items had failures:
2 of 7 in sage.rings.continued_fraction_gosper.gosper_iterator.__iter__
1 of 6 in sage.rings.continued_fraction_gosper.gosper_iterator.__next__
[40 tests, 3 failures, 0.04 s]
----------------------------------------------------------------------
sage -t --long --random-seed=129865150212556213443045001147722733023 src/sage/rings/continued_fraction_gosper.py # 3 doctests failed
----------------------------------------------------------------------
Component: doctest framework
Author: Jonathan Kliem
Branch/Commit: ae80b6d
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/33039