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

the optional polymake doctests are seriously misformatted so never run #12340

Closed
williamstein opened this issue Jan 21, 2012 · 9 comments
Closed

Comments

@williamstein
Copy link
Contributor

sage: search_src('polymake')

reveals many tests marked # optional: needs polymake.
These will NOT get run by doing

sage -t -only_optional=polymake geometry/polytope.py

They should be formatted as

#optional - polymake

By the way, this test works fine without polymake is installed, because it doesn't do anything, so improve that by adding another test right after this that actually exercise the optional package.

sage: P = polymake.convex_hull([[1,0,0,0], [1,0,0,1], [1,0,1,0], [1,0,1,1],  [1,1,0,0], [1,1,0,1], [1,1,1,0], [1,1,1,1]])

Component: doctest coverage

Keywords: sd40.5

Author: Benjamin Jones

Reviewer: Mike Hansen

Merged: sage-5.1.beta3

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

@williamstein
Copy link
Contributor Author

comment:1

By the way, this code is from my commit 271, i.e., ancient history, before there was an infrastructure for how optional package tests worked. But it would be good to update this.

@benjaminfjones
Copy link
Contributor

comment:2

I'm working on this, looks like polymake appears in geometry/polytope.py, rings/polynomial/groebner_fan.py, and rings/polynomial/multi_polynomial.pyx.

@benjaminfjones
Copy link
Contributor

Attachment: trac_12340.patch.gz

mark doctests requiring polymake correctly

@benjaminfjones
Copy link
Contributor

comment:3

I could add doctests to a bunch of functions here, but I can't get the the polymake spkg to build on pretty much any platform, see #5488. But in the meantime, the attached patch corrects the optional doctests.

@mwhansen
Copy link
Contributor

Reviewer: Mike Hansen

@mwhansen
Copy link
Contributor

Author: Benjamin Jones

@mwhansen
Copy link
Contributor

comment:4

Looks good to me.

@mwhansen
Copy link
Contributor

Changed keywords from none to sd40.5

@jdemeyer
Copy link

jdemeyer commented Jun 5, 2012

Merged: sage-5.1.beta3

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

4 participants