diff options
author | Zachary Turner <zturner@google.com> | 2015-05-21 20:16:02 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-05-21 20:16:02 +0000 |
commit | b48b40405ec4772d82fe5efab411a1d331d72e46 (patch) | |
tree | 2a46ca5e62eb567b49430f13734783c87ac174c6 | |
parent | 3c1c5b9d88e3a529a09435618d8ac6c599ad3041 (diff) | |
download | bcm5719-llvm-b48b40405ec4772d82fe5efab411a1d331d72e46.tar.gz bcm5719-llvm-b48b40405ec4772d82fe5efab411a1d331d72e46.zip |
Don't import module `lock` at global scope.
`lock` depends on `fcntl`, which doesn't exist on Windows. Until
someone implements an equivalent locking mechanism on Windows, we
can't have lock imported globally.
llvm-svn: 237946
-rw-r--r-- | lldb/test/lldbtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 6f949b25424..bbbaaef3e02 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -33,7 +33,6 @@ $ import abc import glob -import lock import os, sys, traceback import os.path import re @@ -961,6 +960,7 @@ class Base(unittest2.TestCase): os.chdir(os.path.join(os.environ["LLDB_TEST"], cls.mydir)) if debug_confirm_directory_exclusivity: + import lock cls.dir_lock = lock.Lock(os.path.join(full_dir, ".dirlock")) try: cls.dir_lock.try_acquire() |