Skip to content

Fix testing.helper to work without unittest - #4304

Merged
mergify[bot] merged 3 commits into
cupy:masterfrom
toslunar:fix-helper-pytest
Nov 29, 2020
Merged

mergify[bot] merged 3 commits into
cupy:masterfrom
toslunar:fix-helper-pytest

Conversation

@toslunar

@toslunar toslunar commented Nov 19, 2020 •

Copy link
Copy Markdown
Member

The PR improves PyTest support.

  • Fix numpy_cupy_* with sp_name, scipy_name.
  • Raise AssertionError.
  • Use pytest.mark.skipif instead of unittest.skipIf.

Support non-`unittest.TestCase` tests.
`fail` method of `unittest.TestCase` raises `self.failureException`
whose default is `AssertionError`.
@emcastillo

Copy link
Copy Markdown
Member

Jenkins, test this please

@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit 3b96e75, target branch master) succeeded!

@emcastillo emcastillo added the st:test-and-merge (deprecated) Ready to merge after test pass. label Nov 29, 2020
@emcastillo emcastillo added this to the v9.0.0b1 milestone Nov 29, 2020
@emcastillo

Copy link
Copy Markdown
Member

Jenkins, test this please

@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit 3b96e75, target branch master) succeeded!

@mergify
mergify Bot merged commit 55c155e into cupy:master Nov 29, 2020
@toslunar
toslunar deleted the fix-helper-pytest branch November 30, 2020 02:33
@kmaehashi kmaehashi modified the milestones: v9.0.0b1, v9.0.0a3 Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:test Test code / CI prio:medium st:test-and-merge (deprecated) Ready to merge after test pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants