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

ellipsis for doctest line numbers #16626

Closed
vbraun opened this issue Jul 8, 2014 · 25 comments
Closed

ellipsis for doctest line numbers #16626

vbraun opened this issue Jul 8, 2014 · 25 comments

Comments

@vbraun
Copy link
Member

vbraun commented Jul 8, 2014

Warnings (including deprecations) should be of the form

   sage: raise_warning()
   doctest:...: Warning: this is a warning

Note the ellipsis. Putting the actual source line number in there is not cool.

Depends on #16504

CC: @nathanncohen @dimpase

Component: doctest coverage

Author: Volker Braun

Branch/Commit: 5e81606

Reviewer: Martin Albrecht, Dima Pasechnik

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

@vbraun vbraun added this to the sage-6.3 milestone Jul 8, 2014
@vbraun

This comment has been minimized.

@vbraun
Copy link
Member Author

vbraun commented Jul 8, 2014

Dependencies: #16504

@vbraun
Copy link
Member Author

vbraun commented Jul 8, 2014

comment:2

Depends on #16504 to avoid conflicts.

@vbraun
Copy link
Member Author

vbraun commented Jul 8, 2014

@vbraun
Copy link
Member Author

vbraun commented Jul 8, 2014

New commits:

b1f43aftrac #16504: A mandatory 'nonnegative' argument for MixedIntegerLinearProgram.new_variable() until the standard changes
e9ac71dtrac #16504: Tastes and colors ................
d437be4trac #16504: Broken doctest
ebc3316trac #16504: additional doctest for nonnegative=False
e6ff553Cosmetic changes
1903937trac #16504: Updates the tutorial
27a0bcetrac #16504: Merged with beta5
45bc937trac #16504: Broken doctest
987faabEllipsize the source line number in warnings

@vbraun
Copy link
Member Author

vbraun commented Jul 8, 2014

Author: Volker Braun

@vbraun
Copy link
Member Author

vbraun commented Jul 8, 2014

Commit: 987faab

@kcrisman
Copy link
Member

kcrisman commented Jul 8, 2014

comment:5

The dumb question which needs to be asked is whether there is any mechanism here for making sure it doesn't come back. At a minimum, is this in the developer guide? Otherwise there will be more tickets 'fixing' this.

On a different note, what was # doctest: +ELLIPSIS for? Some truly ancient way to mark that the ellipsis should behave as it does now?

@vbraun
Copy link
Member Author

vbraun commented Jul 8, 2014

comment:6

I'll add a check to the doctest framework.

In plain python you need to turn on ellipsis per doctest, but we made it default.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 8, 2014

Changed commit from 987faab to 7361632

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 8, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

7361632Check doctest output for source line numbers

@vbraun
Copy link
Member Author

vbraun commented Jul 8, 2014

comment:8

Done, will now raise an error similar to how tabs raise an error.

@kcrisman
Copy link
Member

kcrisman commented Jul 9, 2014

comment:9

Should get an opinion from someone who understands the doctest framework better, but this answers all my questions and then some.

@malb
Copy link
Member

malb commented Jul 11, 2014

Reviewer: Martin Albrecht

@malb
Copy link
Member

malb commented Jul 11, 2014

comment:10

Looks okay to me (I ignored all MIP stuff when reading)

@dimpase
Copy link
Member

dimpase commented Jul 11, 2014

comment:11

Volker, could you say what happens with mip.pyx here - it's quite a patch...

@dimpase
Copy link
Member

dimpase commented Jul 11, 2014

Changed reviewer from Martin Albrecht to Martin Albrecht, Dima Pasechnik

@malb
Copy link
Member

malb commented Jul 11, 2014

comment:13

AFAIK it's in there because o the dependency: #16504

@dimpase
Copy link
Member

dimpase commented Jul 11, 2014

comment:14

OK, makes sense.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 11, 2014

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. Last 10 new commits:

e7a97eatrac #16553: doc fix + deprecation is_block_design
3c0dd71trac #16553v3: change .points() -> .ground_set()
52b7177trac #16553: merge sage 6.3.beta5
0698433trac #16553: deprecated alias .points() + fix
fb636aatrac #16622: Hypergraph is now an incidence structure
9f70459trac #16622: Changing the terminology
cb60470trac #16622: Broken doc
cd7ba1atrac #16622: More doc fixes
20b3b4atrac #16622: HyperGraphGenerators --> HypergraphGenerators
30f094aMerge #16622

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 11, 2014

Changed commit from 7361632 to 30f094a

@vbraun
Copy link
Member Author

vbraun commented Jul 11, 2014

comment:16

I merged in #16622 to resolve a merge conflict

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 12, 2014

Changed commit from 30f094a to 5e81606

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 12, 2014

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:

5e81606Fix more source line numbers from #16622

@vbraun
Copy link
Member Author

vbraun commented Jul 12, 2014

Changed branch from u/vbraun/ellipsis_for_doctest_line_numbers to 5e81606

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