Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias identifier Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Str Pass decorator_list Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad Num NameLoad NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad Num NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str Str keyword NameLoad body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore ListLoad For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index BinOpMult NameLoad Num SubscriptLoad NameLoad Index BinOpAdd BinOpAdd BinOpMult NameLoad Num Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body FunctionDef arguments args defaults body Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str Str keyword NameLoad Return Call NameLoad decorator_list Call AttributeLoad NameLoad attr Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad finalbody If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str Str keyword NameLoad body Assign NameStore ListLoad For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Num For NameStore NameLoad body TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Num finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore ListLoad For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse TryFinally body Expr Call NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr Num For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num If NameLoad body Expr Call AttributeLoad NameLoad attr Num NameLoad finalbody If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str TryFinally body Expr Call AttributeLoad NameLoad attr finalbody If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str TryFinally body Expr Call AttributeLoad NameLoad attr finalbody If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return NameLoad decorator_list Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str FunctionDef arguments args defaults body Pass decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad TryFinally body Expr Call NameLoad finalbody If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str FunctionDef arguments args defaults body Pass decorator_list Call AttributeLoad NameLoad attr Str Str NameLoad TryFinally body Expr Call NameLoad finalbody If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str TryFinally body With Call AttributeLoad NameLoad attr Str NameStore body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr finalbody If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore NameLoad TryFinally body With Call AttributeLoad NameLoad attr Str NameStore body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Str Assign NameStore Str If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Str Call AttributeLoad Str attr ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad ListLoad Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr While UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareGt BinOpSub Call AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str While CompareLt BinOpSub Call AttributeLoad NameLoad attr NameLoad Num body TryExcept body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Break orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Assign NameStore NameLoad While UnaryOpNot NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass finalbody Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr While UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str body If CompareGt BinOpSub Call AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr body With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Str Str Assign NameStore ListLoad Str AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Assign NameStore ListLoad Str AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad AttributeLoad NameLoad attr Str Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A collections N/A fcntl N/A os N/A shutil N/A signal N/A subprocess N/A sys N/A tempfile N/A threading N/A time oslo_config cfg oslotest base test_base N/A six oslo_concurrency.fixture lockutils fixtures oslo_concurrency lockutils oslo_config fixture config LockTestCase N/A N/A test_base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super LockTestCase self setUp N/A N/A self config N/A N/A N/A self useFixture N/A N/A config Config N/A lockutils CONF config N/A test_synchronized_wrapped_function_metadata N/A N/A self N/A N/A foo N/A N/A N/A N/A N/A Bar. N/A N/A N/A N/A lockutils synchronized whatever test- N/A N/A N/A self assertEqual N/A foo __doc__ Bar. Wrapped function's docstring got lost N/A N/A N/A self assertEqual N/A foo __name__ foo Wrapped function's name got mangled N/A test_lock_internally_different_collections N/A N/A self N/A N/A N/A s1 N/A N/A lockutils Semaphores N/A s2 N/A N/A lockutils Semaphores N/A trigger N/A N/A threading Event N/A who_ran N/A N/A collections deque f N/A N/A name semaphores pull_trigger N/A N/A N/A N/A N/A lockutils internal_lock testing semaphores semaphores N/A N/A pull_trigger N/A N/A N/A N/A trigger set N/A N/A N/A N/A trigger wait N/A N/A N/A who_ran append name N/A N/A threads N/A N/A N/A threading Thread target f args N/A 1 s1 True N/A N/A threading Thread target f args N/A 2 s2 False N/A thread threads N/A N/A N/A N/A thread start N/A thread threads N/A N/A N/A N/A thread join N/A N/A N/A self assertEqual N/A 1 2 N/A sorted who_ran N/A test_lock_internally N/A N/A self N/A N/A N/A We can lock across multiple threads. N/A saved_sem_num N/A len N/A lockutils _semaphores N/A seen_threads N/A list f N/A N/A _id N/A N/A N/A N/A N/A lockutils lock testlock2 test- external False N/A N/A x N/A range 10 N/A N/A N/A N/A seen_threads append _id N/A N/A threads N/A N/A i N/A range 10 N/A N/A thread N/A N/A threading Thread target f args N/A i N/A N/A N/A threads append thread N/A N/A N/A thread start N/A thread threads N/A N/A N/A N/A thread join N/A N/A N/A self assertEqual N/A len seen_threads 100 N/A i N/A range 10 N/A N/A j N/A range 9 N/A N/A N/A N/A self assertEqual N/A seen_threads N/A N/A i 10 N/A seen_threads N/A N/A N/A N/A i 10 1 j N/A N/A N/A self assertEqual saved_sem_num N/A len N/A lockutils _semaphores Semaphore leak detected N/A test_nested_synchronized_external_works N/A N/A self N/A N/A N/A We can nest external syncs. N/A tempdir N/A N/A tempfile mkdtemp N/A N/A N/A N/A N/A self config lock_path tempdir group oslo_concurrency N/A sentinel N/A object outer_lock N/A N/A N/A N/A inner_lock N/A N/A N/A N/A N/A sentinel N/A N/A N/A lockutils synchronized testlock2 test- external True N/A N/A inner_lock N/A N/A N/A lockutils synchronized testlock1 test- external True N/A N/A N/A self assertEqual sentinel N/A outer_lock N/A N/A N/A N/A N/A os path exists tempdir N/A N/A N/A N/A shutil rmtree tempdir N/A _do_test_lock_externally N/A N/A self N/A N/A N/A We can lock across multiple processes. lock_files N/A N/A handles_dir N/A N/A N/A N/A N/A lockutils lock external test- external True N/A N/A handles N/A N/A n N/A range 50 N/A N/A path N/A N/A N/A os path join handles_dir N/A file-%s n N/A N/A N/A handles append N/A open path w N/A count 0 N/A handle handles N/A N/A N/A N/A N/A N/A N/A N/A fcntl flock handle N/A N/A fcntl LOCK_EX N/A fcntl LOCK_NB N/A count 1 N/A N/A N/A fcntl flock handle N/A fcntl LOCK_UN N/A N/A N/A IOError N/A N/A N/A N/A os _exit 2 N/A N/A N/A N/A handle close N/A N/A N/A self assertEqual 50 count N/A N/A handles_dir N/A N/A tempfile mkdtemp N/A N/A N/A children N/A N/A n N/A range 50 N/A N/A pid N/A N/A os fork N/A pid N/A N/A N/A N/A children append pid N/A N/A N/A N/A N/A lock_files handles_dir N/A N/A N/A N/A os _exit 0 N/A child children N/A N/A N/A pid status N/A N/A os waitpid child 0 N/A pid N/A N/A N/A N/A self assertEqual 0 status N/A N/A N/A N/A N/A os path exists handles_dir N/A N/A N/A N/A shutil rmtree handles_dir ignore_errors True N/A test_lock_externally N/A N/A self N/A N/A N/A lock_dir N/A N/A tempfile mkdtemp N/A N/A N/A self config lock_path lock_dir group oslo_concurrency N/A N/A N/A N/A N/A self _do_test_lock_externally N/A N/A N/A N/A N/A os path exists lock_dir N/A N/A N/A N/A shutil rmtree lock_dir ignore_errors True N/A test_lock_externally_lock_dir_not_exist N/A N/A self N/A N/A N/A lock_dir N/A N/A tempfile mkdtemp N/A N/A N/A os rmdir lock_dir N/A N/A N/A self config lock_path lock_dir group oslo_concurrency N/A N/A N/A N/A N/A self _do_test_lock_externally N/A N/A N/A N/A N/A os path exists lock_dir N/A N/A N/A N/A shutil rmtree lock_dir ignore_errors True N/A test_synchronized_with_prefix N/A N/A self N/A N/A N/A lock_name mylock N/A lock_pfix mypfix- N/A foo N/A N/A lockutils synchronized_with_prefix lock_pfix bar N/A N/A dirpath pfix name N/A N/A N/A True N/A N/A foo lock_name external True N/A lock_dir N/A N/A tempfile mkdtemp N/A N/A N/A self config lock_path lock_dir group oslo_concurrency N/A N/A N/A self assertTrue N/A bar lock_dir lock_pfix lock_name N/A test_synchronized_without_prefix N/A N/A self N/A N/A N/A lock_dir N/A N/A tempfile mkdtemp N/A N/A N/A self config lock_path lock_dir group oslo_concurrency test_without_prefix N/A N/A N/A N/A N/A N/A N/A N/A lockutils synchronized lock external True N/A N/A N/A N/A test_without_prefix N/A N/A N/A N/A N/A os path exists lock_dir N/A N/A N/A N/A shutil rmtree lock_dir ignore_errors True N/A test_synchronized_prefix_without_hypen N/A N/A self N/A N/A N/A lock_dir N/A N/A tempfile mkdtemp N/A N/A N/A self config lock_path lock_dir group oslo_concurrency test_without_hypen N/A N/A N/A N/A N/A N/A N/A N/A lockutils synchronized lock hypen True N/A N/A N/A N/A test_without_hypen N/A N/A N/A N/A N/A os path exists lock_dir N/A N/A N/A N/A shutil rmtree lock_dir ignore_errors True N/A test_contextlock N/A N/A self N/A N/A N/A lock_dir N/A N/A tempfile mkdtemp N/A N/A N/A self config lock_path lock_dir group oslo_concurrency N/A N/A N/A N/A N/A lockutils lock test sem N/A N/A N/A six PY2 N/A N/A N/A N/A self assertTrue N/A isinstance sem N/A threading _Semaphore N/A N/A N/A N/A self assertTrue N/A isinstance sem N/A threading Semaphore N/A N/A N/A lockutils lock test2 external True lock N/A N/A N/A N/A self assertTrue N/A N/A lock exists N/A N/A N/A lockutils lock test1 external True lock1 N/A N/A N/A N/A self assertTrue N/A isinstance lock1 N/A lockutils InterProcessLock N/A N/A N/A N/A N/A os path exists lock_dir N/A N/A N/A N/A shutil rmtree lock_dir ignore_errors True N/A test_contextlock_unlocks N/A N/A self N/A N/A N/A lock_dir N/A N/A tempfile mkdtemp N/A N/A N/A self config lock_path lock_dir group oslo_concurrency N/A sem None N/A N/A N/A N/A N/A lockutils lock test sem N/A N/A N/A six PY2 N/A N/A N/A N/A self assertTrue N/A isinstance sem N/A threading _Semaphore N/A N/A N/A N/A self assertTrue N/A isinstance sem N/A threading Semaphore N/A N/A N/A lockutils lock test2 external True lock N/A N/A N/A N/A self assertTrue N/A N/A lock exists N/A N/A N/A lockutils lock test2 external True lock N/A N/A N/A N/A self assertTrue N/A N/A lock exists N/A N/A N/A lockutils lock test sem2 N/A N/A N/A N/A self assertEqual sem sem2 N/A N/A N/A N/A N/A os path exists lock_dir N/A N/A N/A N/A shutil rmtree lock_dir ignore_errors True N/A _test_remove_lock_external_file N/A N/A self lock_dir use_external N/A False N/A N/A lock_name mylock N/A lock_pfix mypfix-remove-lock-test- N/A use_external N/A N/A lock_path lock_dir N/A N/A lock_path None N/A N/A N/A lockutils remove_external_lock_file lock_name lock_pfix lock_path N/A ent N/A N/A os listdir lock_dir N/A N/A N/A N/A self assertRaises OSError N/A ent startswith lock_pfix N/A N/A N/A N/A os path exists lock_dir N/A N/A N/A N/A shutil rmtree lock_dir ignore_errors True N/A test_remove_lock_external_file N/A N/A self N/A N/A N/A lock_dir N/A N/A tempfile mkdtemp N/A N/A N/A self config lock_path lock_dir group oslo_concurrency N/A N/A N/A self _test_remove_lock_external_file lock_dir N/A test_remove_lock_external_file_lock_path N/A N/A self N/A N/A N/A lock_dir N/A N/A tempfile mkdtemp N/A N/A N/A self _test_remove_lock_external_file lock_dir use_external True N/A test_no_slash_in_b64 N/A N/A self N/A N/A N/A N/A N/A lockutils lock foobar N/A N/A N/A test_deprecated_names N/A N/A self N/A N/A N/A paths N/A N/A self create_tempfiles N/A N/A fake.conf N/A N/A join N/A [DEFAULT] lock_path=foo disable_process_locking=True N/A conf N/A N/A cfg ConfigOpts N/A N/A conf N/A --config-file N/A paths N/A 0 N/A N/A N/A conf register_opts N/A lockutils _opts oslo_concurrency N/A N/A N/A self assertEqual N/A N/A conf oslo_concurrency lock_path foo N/A N/A N/A self assertTrue N/A N/A conf oslo_concurrency disable_process_locking N/A N/A FileBasedLockingTestCase N/A N/A test_base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super FileBasedLockingTestCase self setUp N/A N/A self lock_dir N/A N/A tempfile mkdtemp N/A test_lock_file_exists N/A N/A self N/A N/A N/A lock_file N/A N/A N/A os path join N/A self lock_dir lock-file foo N/A N/A N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A os path exists lock_file N/A N/A N/A lockutils synchronized lock-file external True lock_path N/A self lock_dir N/A N/A foo N/A test_interprocess_lock N/A N/A self N/A N/A N/A lock_file N/A N/A N/A os path join N/A self lock_dir processlock N/A pid N/A N/A os fork N/A pid N/A N/A start N/A N/A time time N/A N/A N/A N/A N/A os path exists lock_file N/A N/A N/A N/A N/A N/A time time start 5 N/A N/A N/A N/A self fail Timed out waiting for child to grab lock N/A N/A N/A time sleep 0 N/A lock1 N/A N/A lockutils InterProcessLock foo N/A N/A lock1 lockfile N/A open lock_file w N/A N/A N/A N/A N/A time time start 5 N/A N/A N/A N/A N/A N/A lock1 trylock N/A N/A N/A lock1 unlock N/A N/A N/A time sleep 0 N/A N/A N/A IOError N/A N/A N/A N/A N/A N/A self fail Never caught expected lock exception N/A N/A N/A os kill pid N/A signal SIGKILL N/A N/A N/A N/A lock2 N/A N/A lockutils InterProcessLock foo N/A N/A lock2 lockfile N/A open lock_file w N/A have_lock False N/A N/A have_lock N/A N/A N/A N/A N/A N/A lock2 trylock N/A have_lock True N/A N/A N/A IOError N/A N/A N/A N/A N/A N/A time sleep 0.5 N/A N/A N/A os _exit 0 N/A test_interthread_external_lock N/A N/A self N/A N/A N/A call_list N/A foo N/A N/A param N/A N/A N/A Simulate a long-running threaded operation. N/A N/A N/A call_list append param N/A N/A N/A time sleep 0.5 N/A N/A N/A call_list append param N/A N/A N/A lockutils synchronized foo external True lock_path N/A self lock_dir other N/A N/A param N/A N/A N/A N/A foo param N/A N/A thread N/A N/A threading Thread target other args N/A other N/A N/A N/A thread start N/A start N/A N/A time time N/A N/A N/A N/A N/A os path exists N/A N/A N/A os path join N/A self lock_dir foo N/A N/A N/A N/A N/A N/A time time start 5 N/A N/A N/A N/A self fail Timed out waiting for thread to grab lock N/A N/A N/A time sleep 0 N/A thread1 N/A N/A threading Thread target other args N/A main N/A N/A N/A thread1 start N/A N/A N/A thread1 join N/A N/A N/A thread join N/A N/A N/A self assertEqual call_list N/A other other main main N/A test_non_destructive N/A N/A self N/A N/A N/A lock_file N/A N/A N/A os path join N/A self lock_dir not-destroyed N/A N/A open lock_file w f N/A N/A N/A N/A f write test N/A N/A N/A lockutils lock not-destroyed external True lock_path N/A self lock_dir N/A N/A N/A open lock_file f N/A N/A N/A N/A self assertEqual N/A N/A f read test N/A N/A LockutilsModuleTestCase N/A N/A test_base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super LockutilsModuleTestCase self setUp N/A N/A self old_env N/A N/A N/A os environ get OSLO_LOCK_PATH N/A N/A N/A self old_env None N/A N/A N/A N/A os environ N/A OSLO_LOCK_PATH N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self old_env None N/A N/A N/A N/A os environ N/A OSLO_LOCK_PATH N/A self old_env N/A N/A N/A N/A super LockutilsModuleTestCase self tearDown N/A test_main N/A N/A self N/A N/A N/A script N/A N/A join N/A import os lock_path = os.environ.get("OSLO_LOCK_PATH") assert lock_path is not None assert os.path.isdir(lock_path) N/A argv N/A N/A sys executable -c script N/A retval N/A N/A lockutils _lock_wrapper argv N/A N/A N/A self assertEqual retval 0 Bad OSLO_LOCK_PATH has been set N/A test_return_value_maintained N/A N/A self N/A N/A N/A script N/A N/A join N/A import sys sys.exit(1) N/A argv N/A N/A sys executable -c script N/A retval N/A N/A lockutils _lock_wrapper argv N/A N/A N/A self assertEqual retval 1 N/A test_direct_call_explodes N/A N/A self N/A N/A N/A cmd N/A N/A sys executable -m oslo_concurrency.lockutils N/A N/A open N/A os devnull w devnull N/A N/A retval N/A N/A subprocess call cmd stderr devnull N/A N/A N/A self assertEqual 1 retval N/A N/A TestLockFixture N/A N/A test_base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestLockFixture self setUp N/A N/A self config N/A N/A N/A self useFixture N/A N/A config Config N/A lockutils CONF config N/A N/A self tempdir N/A N/A tempfile mkdtemp N/A _check_in_lock N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A self lock exists N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self _check_in_lock N/A N/A N/A N/A super TestLockFixture self tearDown N/A test_lock_fixture N/A N/A self N/A N/A N/A N/A N/A self config lock_path N/A self tempdir group oslo_concurrency N/A fixture N/A N/A fixtures LockFixture test-lock N/A N/A N/A self useFixture fixture N/A N/A self lock N/A fixture lock N/A N/A TestGetLockPath N/A N/A test_base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestGetLockPath self setUp N/A N/A self conf N/A N/A N/A self useFixture N/A N/A config Config N/A lockutils CONF conf N/A test_get_default N/A N/A self N/A N/A N/A N/A N/A lockutils set_defaults lock_path /the/path N/A N/A N/A self assertEqual /the/path N/A N/A lockutils get_lock_path N/A self conf N/A test_get_override N/A N/A self N/A N/A N/A N/A N/A lockutils _register_opts N/A self conf N/A N/A N/A N/A self conf set_override lock_path /alternate/path group oslo_concurrency N/A N/A N/A self assertEqual /alternate/path N/A N/A lockutils get_lock_path N/A self conf N/A N/A