Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

BUG: Generate baseline #202

Closed
inoelloc opened this issue Jun 7, 2024 · 0 comments · Fixed by #203
Closed

BUG: Generate baseline #202

inoelloc opened this issue Jun 7, 2024 · 0 comments · Fixed by #203
Assignees
Labels
bug Something isn't working

Comments

@inoelloc
Copy link
Contributor

inoelloc commented Jun 7, 2024

With the new build system, importing test files to retrieve the functions used to generate the baseline no longer works.

module = importlib.import_module(mn)

We must add now:

sys.path.insert(0, "")

to allow local import but there is a directory called io which collide with the io standard library ...
One way is to import from tests directory instead of importing:

import io

use

import tests.io

It can be done by changing the current directory:

os.chdir("..")
@inoelloc inoelloc added the bug Something isn't working label Jun 7, 2024
@inoelloc inoelloc added this to the Release v1.0.1 milestone Jun 7, 2024
@inoelloc inoelloc self-assigned this Jun 7, 2024
@inoelloc inoelloc linked a pull request Jun 10, 2024 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant