Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random failure from random chordal graph #26841

Closed
vbraun opened this issue Dec 5, 2018 · 1 comment
Closed

Random failure from random chordal graph #26841

vbraun opened this issue Dec 5, 2018 · 1 comment

Comments

@vbraun
Copy link
Member

vbraun commented Dec 5, 2018

This was introduced in #26730

File "src/sage/graphs/generators/random.py", line 907, in sage.graphs.generators.random.connecting_nodes
Failed example:
    S = connecting_nodes(T, 5)
Exception raised:
    Traceback (most recent call last):
      File "/home/buildbot/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 671, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/buildbot/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1086, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.graphs.generators.random.connecting_nodes[2]>", line 1, in <module>
        S = connecting_nodes(T, Integer(5))
      File "/home/buildbot/slave/sage_git/build/local/lib/python2.7/site-packages/sage/graphs/generators/random.py", line 973, in connecting_nodes
        S.append(Ti)
    UnboundLocalError: local variable 'Ti' referenced before assignment
**********************************************************************
File "src/sage/graphs/generators/random.py", line 908, in sage.graphs.generators.random.connecting_nodes
Failed example:
    len(S)
Exception raised:
    Traceback (most recent call last):
      File "/home/buildbot/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 671, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/buildbot/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1086, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.graphs.generators.random.connecting_nodes[3]>", line 1, in <module>
        len(S)
    NameError: name 'S' is not defined
**********************************************************************
1 item had failures:
   2 of   5 in sage.graphs.generators.random.connecting_nodes
    [165 tests, 2 failures, 4.48 s]
----------------------------------------------------------------------
sage -t --long src/sage/graphs/generators/random.py  # 2 doctests failed
----------------------------------------------------------------------

CC: @tscrim @dcoudert

Component: graph theory

Keywords: random_fail

Issue created by migration from https://trac.sagemath.org/ticket/26841

@vbraun vbraun added this to the sage-8.5 milestone Dec 5, 2018
@vbraun
Copy link
Member Author

vbraun commented Dec 5, 2018

comment:1

Duplicate of #26808

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant