Opened 10 years ago

Last modified 10 years ago

#9925 closed defect

Doctest error in sage/graphs/graph.py — at Version 3

Reported by: mpatel Owned by: mvngu
Priority: major Milestone: sage-4.6
Component: doctest coverage Keywords:
Cc: dimpase, edward.scheinerman, jason, kcrisman, mvngu, ncohen Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by mpatel)

I've seen this doctest error with a trial 4.6.alpha1 on sage.math and the Skynet machine cicero (x86-Linux-pentium4-fc):

sage -t -long  devel/sage/sage/graphs/graph.py
**********************************************************************
File "/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1/devel/sage-main/sage/graphs/graph.py", line 1347:
    sage: cycle.order() % 2 == 0
Exception raised:
    Traceback (most recent call last):
      File "/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_6[9]>", line 1, in <module>
        cycle.order() % Integer(2) == Integer(0)###line 1347:
    sage: cycle.order() % 2 == 0
    AttributeError: 'bool' object has no attribute 'order'
**********************************************************************
File "/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1/devel/sage-main/sage/graphs/graph.py", line 1349:
    sage: cycle.is_isomorphic(graphs.CycleGraph(cycle.order()))
Exception raised:
    Traceback (most recent call last):
      File "/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_6[10]>", line 1, in <module>
        cycle.is_isomorphic(graphs.CycleGraph(cycle.order()))###line 1349:
    sage: cycle.is_isomorphic(graphs.CycleGraph(cycle.order()))
    AttributeError: 'bool' object has no attribute 'is_isomorphic'
**********************************************************************

Change History (3)

comment:1 Changed 10 years ago by mpatel

If it's feasible to create a patch now, I can merge it into 4.6.alpha1, while I wait for a response to a build error at #4000.

Edward, could you add yourself to the account name-real name map?

comment:2 Changed 10 years ago by jhpalmieri

Is this repeatable? I think I've seen this before, but it's always passed on the second try.

comment:3 Changed 10 years ago by mpatel

  • Description modified (diff)

Oops. You're right. I confused this with a different error. I got error above only on sage.math and cicero.skynet (x86-Linux-pentium4-fc) and it's not reproducible.

I apologize for the noise. Does anyone know why this test might be "flaky"?

Note: See TracTickets for help on using tickets.