Ticket #6030 (closed enhancement: fixed)
[with patch, positive review] Bring plot/circle.py to 100% coverage
| Reported by: | kcrisman | Owned by: | kcrisman |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-4.0 |
| Component: | documentation | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
Bring plot/circle.py to 100% coverage.
Attachments
Change History
comment:1 Changed 4 years ago by kcrisman
- Summary changed from Bring plot/circle.py to 100% coverage to [with patch, needs review] Bring plot/circle.py to 100% coverage
Brings plot/circle.py to 100% coverage and improves 3D plotting potential.
See http://groups.google.com/group/sage-devel/browse_thread/thread/1adac4035031b140/c36f1f8a7c8a9b43#c36f1f8a7c8a9b43 for why there is no loads(dumps()) test.
comment:2 Changed 4 years ago by kcrisman
- Owner changed from tba to kcrisman
- Status changed from new to assigned
comment:3 Changed 4 years ago by mvngu
- Summary changed from [with patch, needs review] Bring plot/circle.py to 100% coverage to [with patch, needs work] Bring plot/circle.py to 100% coverage
Some doctest failures:
[mvngu@sage sage-3.4.2]$ ./sage -t -long devel/sage-6030/sage/plot/circle.py
sage -t -long "devel/sage-6030/sage/plot/circle.py"
**********************************************************************
File "/scratch/mvngu/sage-3.4.2/devel/sage-6030/sage/plot/circle.py", line 150:
sage: d = c.plot3d(z=2)
Exception raised:
Traceback (most recent call last):
File "/scratch/mvngu/sage-3.4.2/local/bin/ncadoctest.py", line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/scratch/mvngu/sage-3.4.2/local/bin/sagedoctest.py", line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
File "/scratch/mvngu/sage-3.4.2/local/bin/ncadoctest.py", line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_6[6]>", line 1, in <module>
d = c.plot3d(z=Integer(2))###line 150:
sage: d = c.plot3d(z=2)
File "/scratch/mvngu/sage-3.4.2/local/lib/python2.5/site-packages/sage/plot/circle.py", line 176, in plot3d
return Polygon(xdata, ydata, options).plot3d(z)
TypeError: plot3d() takes exactly 1 argument (2 given)
**********************************************************************
File "/scratch/mvngu/sage-3.4.2/devel/sage-6030/sage/plot/circle.py", line 151:
sage: d.texture.opacity
Exception raised:
Traceback (most recent call last):
File "/scratch/mvngu/sage-3.4.2/local/bin/ncadoctest.py", line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/scratch/mvngu/sage-3.4.2/local/bin/sagedoctest.py", line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
File "/scratch/mvngu/sage-3.4.2/local/bin/ncadoctest.py", line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_6[7]>", line 1, in <module>
d.texture.opacity###line 151:
sage: d.texture.opacity
NameError: name 'd' is not defined
**********************************************************************
1 items had failures:
2 of 12 in __main__.example_6
***Test Failed*** 2 failures.
For whitespace errors, see the file /scratch/mvngu/sage-3.4.2/tmp/.doctest_circle.py
[5.3 s]
exit code: 1024
----------------------------------------------------------------------
The following tests failed:
sage -t -long "devel/sage-6030/sage/plot/circle.py"
Total time for all tests: 5.3 seconds
comment:4 Changed 4 years ago by kcrisman
I should have pointed out that this patch depends on # 6023, which I mistakenly thought had been merged. I believe that will fix both doctest failures above.
Also, I assume the same comment applies as did with # 6006 and # 6023 regarding Sphinx.
comment:5 Changed 4 years ago by mabshoff
- Summary changed from [with patch, needs work] Bring plot/circle.py to 100% coverage to [with patch, needs review] Bring plot/circle.py to 100% coverage
No, the issue with __init__ not showing up in the documentation will be fixed in the future, i.e. sphinx 0.6.
Cheer,s
Michael
comment:6 Changed 4 years ago by mabshoff
- Milestone changed from sage-4.0 to sage-4.0.1
No review, no milestone 4.0 ;)
Cheers,
Michael

