1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-29 08:56:23 -07:00

refactor: use identity check for comparison to a singleton

Comparisons to the singleton objects, like `True`, `False`, and `None`, should be done with identity, not equality. Use `is` or `is not`.
This commit is contained in:
deepsource-autofix[bot] 2023-05-22 15:54:57 +00:00 committed by GitHub
parent e2a1ee4bc3
commit 65461034c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ def start_tests(browser:str, headless=False, keep_open=False, site="", board="",
options.close()
def close_tests():
if options != None:
if options is not None:
options.close()
def parseArgs(argParser:argparse.ArgumentParser):

View file

@ -18,6 +18,6 @@ class SeleniumTestCase(unittest.TestCase):
@property
def driver(self):
if options == None:
if options is None:
return None
return options.driver