Bug #53696
opens3-tests: Replace improper use of "is" with equality
0%
Description
Running ../qa/workunits/rgw/run-s3tests.sh prints the following warnings:
/home/zaitcev/ceph/ceph-srbac/build/tmp.s3-tests.267148/s3-tests/s3tests/functional/test_headers.py:126: SyntaxWarning: "is" with a literal. Did you mean "=="?
if boto_type is 'S3Connection':
/home/zaitcev/ceph/ceph-srbac/build/tmp.s3-tests.267148/s3-tests/s3tests/functional/test_headers.py:131: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif boto_type is 'HTTPRequest':
/home/zaitcev/ceph/ceph-srbac/build/tmp.s3-tests.267148/s3-tests/s3tests/functional/test_s3_website.py:191: SyntaxWarning: "is" with a literal. Did you mean "=="?
if k is 'BucketName':
I looked at the code and it appears that the warnings are valid,
so the code needs to be changed to use '=='.
No data to display