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

Remove random.power test with forbidden value #2375

Merged
merged 1 commit into from Aug 8, 2019

Conversation

niboshi
Copy link
Member

@niboshi niboshi commented Aug 8, 2019

Fixes part of #2370

a=0 has been forbidden in numpy.random.power, but it seems it only became an error in NumPy 1.17.

@niboshi niboshi added cat:test Test code / CI to-be-backported Pull-requests to be backported to stable branch labels Aug 8, 2019
@niboshi niboshi mentioned this pull request Aug 8, 2019
4 tasks
@@ -539,7 +539,7 @@ def test_power(self, a_dtype, dtype):
@cupy.testing.for_float_dtypes('dtype', no_float16=True)
@cupy.testing.for_float_dtypes('a_dtype')
def test_power_for_zero_a(self, a_dtype, dtype):
Copy link
Member

Choose a reason for hiding this comment

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

Why not rename this test?

Suggested change
def test_power_for_zero_a(self, a_dtype, dtype):
def test_power_for_one_a(self, a_dtype, dtype):

Copy link
Member

Choose a reason for hiding this comment

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

BTW, why is this test needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh I have no idea. Maybe we can just remove this test?

@asi1024 asi1024 self-assigned this Aug 8, 2019
@niboshi niboshi changed the title Avoid forbidden value in TestDistributionsPower Remove random.power test with forbidden value Aug 8, 2019
@niboshi
Copy link
Member Author

niboshi commented Aug 8, 2019

Removed the test. PTAL

@asi1024
Copy link
Member

asi1024 commented Aug 8, 2019

LGTM. pfnCI, test this please.

@pfn-ci-bot
Copy link
Collaborator

Successfully created a job for commit ef81bc9:

@asi1024 asi1024 added this to the v7.0.0b3 milestone Aug 8, 2019
@chainer-ci
Copy link
Member

Jenkins CI test (for commit ef81bc9, target branch master) failed with status FAILURE.

@asi1024
Copy link
Member

asi1024 commented Aug 8, 2019

pfnCI, test this please.

@pfn-ci-bot
Copy link
Collaborator

Successfully created a job for commit ef81bc9:

@chainer-ci
Copy link
Member

Jenkins CI test (for commit ef81bc9, target branch master) failed with status FAILURE.

@asi1024
Copy link
Member

asi1024 commented Aug 8, 2019

LGTM.

@asi1024 asi1024 merged commit b8c1a2b into cupy:master Aug 8, 2019
asi1024 added a commit to asi1024/cupy that referenced this pull request Aug 8, 2019
Remove `random.power` test with forbidden value
@niboshi niboshi deleted the fix-test-distr-power branch August 8, 2019 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:test Test code / CI to-be-backported Pull-requests to be backported to stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants