Replacing "is" with "==" in test_headers.py
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 65/100
Research direction
Open s3tests/functional/test_headers.py and locate the three string comparisons using is. Replace those comparison operators with ==, then run the affected test file. Done means all three instances are corrected and the test continues to pass.
Written by the indexing model from the issue text.
Description
Python will throw a syntax warning when a comparison is made between String using 'is' keyword. It is better to change the 'is' keyword with '==' for comparisons of String.
https://github.com/ceph/s3-tests/blob/master/s3tests/functional/test_headers.py
In the given file, there are three instances of this problem. There is a case of having a similarity of code in all the files of an Open Source project but the '==' keyword is used in a lot of languages and is a norm.
I can make a PR correcting this simple issue if a maintainer approves of it.
- Dominant language
- Python
- Stars
- 372
- Forks
- 328
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ceph/s3-tests
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100