Project

General

Profile

Actions

Bug #53696

open

s3-tests: Replace improper use of "is" with equality

Added by Pete Zaitcev over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Actions

Also available in: Atom PDF