summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py b/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
index 769c214b709..24ef4ccede8 100644
--- a/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
+++ b/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
@@ -168,7 +168,7 @@ class DexExpectWatchBase(CommandBase):
for step in step_collection.steps:
loc = step.current_location
- if (loc and os.path.exists(loc.path) and
+ if (loc.path and os.path.exists(loc.path) and
os.path.exists(self.path) and
os.path.samefile(loc.path, self.path) and
loc.lineno in self.line_range):
OpenPOWER on IntegriCloud