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

Remove useless shebang #2316

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Remove useless shebang #2316

merged 1 commit into from
Dec 20, 2023

Conversation

mtelka
Copy link
Contributor

@mtelka mtelka commented Oct 15, 2023

Summary

  • OS: any
  • Bug fix: yes
  • Type: tests
  • Fixes:

Description

The psutil/tests/__main__.py file have shebang but it is impossible to run the file:

$ psutil/tests/__main__.py
Traceback (most recent call last):
  File "/tmp/psutil/psutil/tests/__main__.py", line 11, in <module>
    from .runner import main
ImportError: attempted relative import with no known parent package

So let's remove the shebang.

@giampaolo giampaolo merged commit e0f5b08 into giampaolo:master Dec 20, 2023
1 of 2 checks passed
@mtelka mtelka deleted the shebang branch December 20, 2023 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants