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
Split parfors tests #7160
Split parfors tests #7160
Conversation
2c73105
to
734e908
Compare
As title
734e908
to
dd72e3b
Compare
As title
As title
numba/tests/test_parfors.py
Outdated
class TestParforsBase(TestCase): | ||
|
||
@needs_subprocess | ||
class TestParforsBase(TestCase, MemoryLeakMixin): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class TestParforsBase(TestCase, MemoryLeakMixin): | |
class TestParforsBase(MemoryLeakMixin, TestCase): |
mixin class goes first; earlier in the MRO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two minor comments regarding the mixin location and printing failing tests.
numba/tests/test_parfors.py
Outdated
@@ -44,6 +46,83 @@ | |||
import cmath | |||
import unittest | |||
|
|||
# NOTE: Each parfors test class is run in separate subprocess, this to reduce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# NOTE: Each parfors test class is run in separate subprocess, this to reduce | |
# NOTE: Each parfors test class is run in separate subprocess, this is to reduce |
numba/tests/test_parfors.py
Outdated
status = subprocess.run(cmd, stdout=subprocess.PIPE, | ||
stderr=subprocess.PIPE, timeout=self._TIMEOUT, | ||
env=env_copy, universal_newlines=True) | ||
self.assertEqual(status.returncode, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.assertEqual(status.returncode, 0) | |
self.assertEqual(status.returncode, 0, msg=status.stderr) |
so that we know what tests are failing.
Co-authored-by: Siu Kwan Lam <1929845+sklam@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch!
Work on splitting up the parfors test suite.