mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 11:46:22 -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:
commit
1de30e01b9
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ def start_tests(browser:str, headless=False, keep_open=False, site="", board="",
|
||||||
options.close()
|
options.close()
|
||||||
|
|
||||||
def close_tests():
|
def close_tests():
|
||||||
if options != None:
|
if options is not None:
|
||||||
options.close()
|
options.close()
|
||||||
|
|
||||||
def parseArgs(argParser:argparse.ArgumentParser):
|
def parseArgs(argParser:argparse.ArgumentParser):
|
||||||
|
|
|
@ -18,6 +18,6 @@ class SeleniumTestCase(unittest.TestCase):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def driver(self):
|
def driver(self):
|
||||||
if options == None:
|
if options is None:
|
||||||
return None
|
return None
|
||||||
return options.driver
|
return options.driver
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue