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

cleanup: Unset test_regression_114 executable bit #247

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

EliahKagan
Copy link
Contributor

@EliahKagan EliahKagan commented Aug 14, 2023

test/test_regression_114.py, and no other test modules, had its executable bit set. There are no indications that this was meant to be treated as an executable file on Unix-like systems, running it successfully as a script would not run the test, and executing it would typically cause a POSIX-style shell rather than a Python interpreter to run it (there is no #!), so that appears unintentional.

This unsets that executable bit on that one file that had it, so that git tracks all the test modules with the same file mode values.

The benefit of this change is minor, but goes slightly beyond consistency for its own sake, because it is useful to be able to run ls -l to get a sense of what files are meant to be run as scripts.

In some views and with UI settings, GitHub wrongly shows the affected file as empty in the "Files changed" tab of this PR. However, it is nonempty, and this PR changes only its mode, not its contents.

test/test_regression_114.py, and no other test modules, had its
executable bit set. Since there are no indications that this was
meant to be treated as an executable file on Unix-like systems,
running it successfully as a script would not run the test, and
executing it would typically cause a POSIX-style shell rather than
a Python interpreter to run it (there is no "#!"), that appears
unintentional.

This unsets that executable bit so that git tracks all the test
modules with the same file mode values.
@cwacek cwacek merged commit fcab145 into cwacek:master Aug 17, 2023
7 checks passed
@EliahKagan EliahKagan deleted the cleanup-mode-114 branch August 17, 2023 23:44
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