Comparisons to the singleton objects, like True, False, and None,
should be done with identity, not equality. Use “is” or “is not”
Ref: https://www.flake8rules.com/rules/E711.html
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I33e80228341b93bdeb6cae1b587b8b19275c589d
for url in test_url_3_par:
a = util.create_repo_target_regex(url[1], url[0])
a_regex = re.compile(a)
- assert a_regex.match(url[2]) != None
+ assert a_regex.match(url[2]) is not None
test_url_2_par = [
["org.o-ran-sc.org", "/org/o-ran-sc/org/"],
for url in test_url_2_par:
a = util.create_repo_target_regex(url[0])
a_regex = re.compile(a)
- assert a_regex.match(url[1]) != None
+ assert a_regex.match(url[1]) is not None