Opened 12 years ago
Closed 12 years ago
#9715 closed defect (duplicate)
Failing doctest in even_hole_free
Reported by: | Nathann Cohen | Owned by: | jason, ncohen, rlm |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | graph theory | Keywords: | |
Cc: | dkirkby, Jason Grout, Mitesh Patel | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
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)
Change History (4)
Changed 12 years ago by
Attachment: | trac_9715.patch added |
---|
comment:1 Changed 12 years ago by
Status: | new → needs_review |
---|
comment:2 follow-up: 3 Changed 12 years ago by
Cc: | Mitesh Patel added |
---|
Note: See
TracTickets for help on using
tickets.
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