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

extraneous argument in deprecation in #7154 #9912

Closed
jasongrout opened this issue Sep 15, 2010 · 5 comments
Closed

extraneous argument in deprecation in #7154 #9912

jasongrout opened this issue Sep 15, 2010 · 5 comments

Comments

@jasongrout
Copy link
Member

In #7154, the rename_keyword deprecation decorator has an extra argument. Right now, it's:

@rename_keyword(deprecated='Sage 4.6', deprecated_option='thickness', thickness='width') 

but should just be

@rename_keyword(deprecated='Sage 4.6', thickness='width') 

My bad for not catching this in the review stage.

CC: @sagetrac-ryan

Component: graphics

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

@nexttime
Copy link
Mannequin

nexttime mannequin commented Sep 16, 2010

comment:1

Just for the record, this then also needs to be fixed:

sage -t -long "devel/sage/sage/geometry/polyhedra.py"       
**********************************************************************
File "/home/leif/Sage/sage-4.6.alpha1/devel/sage/sage/geometry/polyhedra.py", line 1270:
    sage: p1.projection().show() + p2.projection().show() + p3.projection().show()
Expected nothing
Got:
    doctest:4555: DeprecationWarning: (Since Sage 4.6) use the option 'width' instead of 'thickness'
    <BLANKLINE>
**********************************************************************
1 items had failures:
   1 of  14 in __main__.example_66
***Test Failed*** 1 failures.

@jasongrout
Copy link
Member Author

comment:2

Leif: is that the only failure in all long doctests (i.e., ptestlong or similar?)

If not, I'll run ptestlong to check.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Sep 16, 2010

comment:3

Replying to @jasongrout:

Leif: is that the only failure in all long doctests (i.e., ptestlong or similar?)

The only one related to this (DeprecationWarning) with the unreleased 4.6.alpha1.

If you put the deprecation warning into the doctest ("expected"), don't forget to not hard-code the line number (from ncadoctest.py!).

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe
Copy link
Member

mkoeppe commented Sep 10, 2021

comment:8

Outdated, should close

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Sep 10, 2021
@kwankyu
Copy link
Collaborator

kwankyu commented Sep 10, 2021

comment:9

I agree

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

5 participants