Skip to content
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

Better error message #92

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Improve telemetry
  • Loading branch information
Pebaz committed Jul 28, 2023
commit 2b6fc6fc3b0f3de076ceef93ae0bf82252415d77
2 changes: 1 addition & 1 deletion nimporter/nexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,6 @@ def _is_semver(string: str) -> bool:
mod_name = '@'.join(segments[index:])
break

new_name = ic(f'NIMPORTER@{mod_name}')
new_name = f'NIMPORTER@{mod_name}'
item.replace(item.with_name(new_name))
return
6 changes: 4 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ def temporarily_install_nimporter():
time.sleep(5)

try:
code, _, _ = run_process(
code, out, err = run_process(
shlex.split(f'{PYTHON} setup.py install --force'),
'NIMPORTER_INSTRUMENT' in os.environ
)

assert code == 0, 'Nimporter failed to install'
assert code == 0, (
f'Nimporter failed to install:\nstdout: {out}\nstderr: {err}'
)

yield
finally:
Expand Down