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

Merge pull request #78 from gochan-org/deepsource-autofix-f96e70c0

use identity check for comparison to a singleton
This commit is contained in:
Eggbertx 2023-05-22 08:55:20 -07:00 committed by GitHub
commit 1de30e01b9
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