Skip to content

Commit

Permalink
Fix new flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Jul 31, 2023
1 parent bf82868 commit cca47f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nose/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,14 @@ def configureLogging(self):
debugLogAbsPath = os.path.abspath(self.debugLog)
for h in logger.handlers:
if (
type(h) == logging.FileHandler
type(h) is logging.FileHandler
and h.baseFilename == debugLogAbsPath
):
found = True
else:
for h in logger.handlers:
if (
type(h) == logging.StreamHandler
type(h) is logging.StreamHandler
and h.stream == self.logStream
):
found = True
Expand Down
2 changes: 1 addition & 1 deletion nose/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def isproperty(obj):
False
>>> isproperty(Foo.get)
True """
return type(obj) == property
return type(obj) is property


def getfilename(package, relativeTo=None):
Expand Down

0 comments on commit cca47f7

Please sign in to comment.