Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Raise missing ValueError in transform_angles#4458

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

has2k1
Copy link
Contributor

  • Includes a small PEP8 change
  • Added tests to cover theTransform.transform_angles method

new_angles = t.transform_angles(angles, points)
assert_array_almost_equal(angles, new_angles)

with assert_raises(ValueError) as cm:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

for future coders, could you add a comment explaining the error you are triggering?

@WeatherGod
Copy link
Member

I restarted the failing test, now it is saying thatassert_raises() takes three arguments... did nose bork a release or something?

@jenshnielsen
Copy link
Member

@WeatherGod Assert_raises can't be used as a context manager in python 2.6. I would suggest just skipping this test on python 2.6 as done inhttps://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_rcparams.py#L127

@WeatherGod
Copy link
Member

Didn't know that. Good to know!

On Sat, May 23, 2015 at 10:56 AM, Jens Hedegaard Nielsen <
notifications@github.com> wrote:

@WeatherGodhttps://github.com/WeatherGod Assert_raises can't be used
as a context manager in python 2.6. I would suggest just skipping this test
on python 2.6 as done in
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_rcparams.py#L127


Reply to this email directly or view it on GitHub
#4458 (comment)
.

- Includes a small PEP8 change- Added tests to cover the `Transform.transform_angles` method
@has2k1has2k1force-pushed thefix-transform-angles-unraised-error branch fromd3254ec to06d0892CompareMay 23, 2015 18:44
@has2k1
Copy link
ContributorAuthor

Well, that worked this time around.

Commented the tests.

WeatherGod added a commit that referenced this pull requestMay 23, 2015
@WeatherGodWeatherGod merged commite1a52a9 intomatplotlib:masterMay 23, 2015
@WeatherGod
Copy link
Member

This does not need backporting. The exception was only missing in master.

@tacaswell
Copy link
Member

@has2k1 Thanks! I should have caught that.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@has2k1@WeatherGod@jenshnielsen@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp