Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: expect_tests/type_definitions.py

Issue 449293002: Don't try to strip NoneType expect_dirs (Closed) Base URL: https://chromium.googlesource.com/infra/testing/expect_tests@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: expect_tests/type_definitions.py
diff --git a/expect_tests/type_definitions.py b/expect_tests/type_definitions.py
index 2ec7fcea7f0a8098f2050f286209868727ded2dd..0e9fb1a66d8afdd78faadb8f736bc382c23c8cd2 100644
--- a/expect_tests/type_definitions.py
+++ b/expect_tests/type_definitions.py
@@ -188,7 +188,8 @@ class Test(_Test):
f.func_code.co_firstlineno,
f.func_code.co_name))
- expect_dir = expect_dir.rstrip('/')
+ if expect_dir:
+ expect_dir = expect_dir.rstrip('/')
return super(Test, cls).__new__(cls, name, func_call, expect_dir,
expect_base, ext, covers, breakpoints)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698