-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Upgrade to using PyTest 7 #738
Conversation
2c3f85c
to
e95aceb
Compare
def _import_module(self) -> runtime.BasilispModule: | ||
modname = _get_fully_qualified_module_name(self.path) | ||
module = importlib.import_module(modname) | ||
assert isinstance(module, runtime.BasilispModule) | ||
return module |
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.
py.path.local
used to have a function which did this before, so replacing it required some annoying re-implementation of that logic to figure out the module name and import it manually.
def __init__(self, **kwargs) -> None: | ||
super().__init__(**kwargs) |
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.
Hi, could you please review patch to fix a break with the recent upgrade to pytest 7 in #738 in the circle CI coverage test. Fixes #740. The `_test` suffix was not preperly identified as a basilisp test suffix, and was failing the coverage tests for `stacktrace_test.lpy`, which was not following the same pattern as of the other test files. I've both fixed the testrunner to properly identifying these as before the upgrade, but also renamed the above to `test_stacktrace.lpy` for conformity with the current pattern. Thanks Co-authored-by: ikappaki <[email protected]> Co-authored-by: Chris Rink <[email protected]>
Fixes #660