diff options
Diffstat (limited to 'tests/support.py')
-rw-r--r-- | tests/support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/support.py b/tests/support.py index 67cf69d7..505c17da 100644 --- a/tests/support.py +++ b/tests/support.py @@ -10,6 +10,6 @@ def location(mod_name): """ Return the file and directory that the code for *mod_name* is in. """ - source = mod_name[:-1] if mod_name.endswith("pyc") else mod_name + source = mod_name.endswith("pyc") and mod_name[:-1] or mod_name source = os.path.abspath(source) return source, os.path.dirname(source) |