Opened 11 years ago

Closed 11 years ago

#9715 closed defect (duplicate)

Failing doctest in even_hole_free

Reported by: ncohen Owned by: jason, ncohen, rlm
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: graph theory Keywords:
Cc: dkirkby, jason, mpatel Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

As reported on :

http://groups.google.com/group/sage-release/browse_thread/thread/fa2facb36603675a

The only random part being the graph generation, it shouldn't be hard to find a workaround....

>> sage -t  devel/sage-main/sage/graphs/graph.py
>> **********************************************************************
>> File "/Volumes/E/sage-4.5.2.rc0/devel/sage-main/sage/graphs/graph.py",
>> line 1347:
>>     sage: cycle.order() % 2 == 0
>> Exception raised:
>>     Traceback (most recent call last):
>>       File "/Volumes/E/sage-4.5.2.rc0/local/bin/ncadoctest.py", line
>> 1231, in run_one_test
>>         self.run_one_example(test, example, filename, compileflags)
>>       File "/Volumes/E/sage-4.5.2.rc0/local/bin/sagedoctest.py", line
>> 38, in run_one_example
>>         OrigDocTestRunner.run_one_example(self, test, example,
>> filename, compileflags)
>>       File "/Volumes/E/sage-4.5.2.rc0/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' 

Nathann

Attachments (1)

trac_9715.patch (1.5 KB) - added by ncohen 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by ncohen

comment:1 Changed 11 years ago by ncohen

  • Status changed from new to needs_review

With this, the docstring does not depend on any -- possibly rare -- probabilistic event. Good to know that the docstrings reports errors that do not appear on 100 000 trials though. :-D

Nathann

comment:2 follow-up: Changed 11 years ago by ncohen

  • Cc mpatel added

This ticket is now invalid because of #10081 and #9422

Nathann

comment:3 in reply to: ↑ 2 Changed 11 years ago by mpatel

  • Milestone changed from sage-4.6 to sage-duplicate/invalid/wontfix
  • Resolution set to duplicate
  • Status changed from needs_review to closed

Replying to ncohen:

This ticket is now invalid because of #10081 and #9422

Also related: #9925.

Note: See TracTickets for help on using tickets.