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) |