Skip to content

Fix randint high value in test for Windows - #1892

Merged
niboshi merged 1 commit into
cupy:masterfrom
kmaehashi:fix-randint-high
Dec 20, 2018
Merged

niboshi merged 1 commit into
cupy:masterfrom
kmaehashi:fix-randint-high

Conversation

@kmaehashi

@kmaehashi kmaehashi commented Dec 13, 2018 •

Copy link
Copy Markdown
Member

Fix regression (Windows test failure) introduced in #1689.


self = <cupy_tests.random_tests.test_generator.TestRandomState testMethod=test_array_seed>

    def test_array_seed(self):
>       self.check_seed(numpy.random.randint(0, 2**32, size=40))

tests\cupy_tests\random_tests\test_generator.py:222: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   ValueError: high is out of bounds for int32

mtrand.pyx:991: ValueError

@kmaehashi kmaehashi added cat:test Test code / CI to-be-backported Pull-requests to be backported to stable branch labels Dec 13, 2018
@kmaehashi kmaehashi changed the title Fix randint high value for Windows Fix randint high value in test for Windows Dec 13, 2018
@niboshi

niboshi commented Dec 20, 2018

Copy link
Copy Markdown
Contributor

LGTM

@niboshi niboshi added this to the v6.0.0b2 milestone Dec 20, 2018
@niboshi niboshi changed the title Fix randint high value in test for Windows Fix randint high value in test for Windows Dec 20, 2018
@niboshi

niboshi commented Dec 20, 2018

Copy link
Copy Markdown
Contributor

jenkins, test this please

@niboshi niboshi added the st:test-and-merge (deprecated) Ready to merge after test pass. label Dec 20, 2018
@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit ee8803a, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

@niboshi
niboshi merged commit 53e865b into cupy:master Dec 20, 2018
@kmaehashi
kmaehashi deleted the fix-randint-high branch December 20, 2018 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:test Test code / CI st:test-and-merge (deprecated) Ready to merge after test pass. to-be-backported Pull-requests to be backported to stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants