Module Expr Str ImportFrom alias Import alias ImportFrom alias alias identifier Import alias Import alias Import alias ImportFrom alias alias alias alias alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore BinOpMod Str NameLoad With Call NameLoad keyword AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call NameLoad TupleLoad Str Str NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword UnaryOpNot NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call NameLoad NameLoad NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Num Expr Call NameLoad Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Num decorator_list NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad BinOpMod Str NameLoad decorator_list NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore ListLoad Str Str Str Str Str For NameStore ListLoad NameLoad Call AttributeLoad Str attr NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad TupleLoad Str Str Expr Call NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Num BinOpMod Str NameLoad Expr Call NameLoad Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Num BinOpMod Str NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad SubscriptLoad NameLoad Index Num Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Str With Call NameLoad NameStore body With Call NameLoad keyword AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad Str Str For NameStore ListLoad NameLoad Call AttributeLoad Str attr NameLoad body Assign NameStore Dict If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad With Call NameLoad AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpMod Str NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Str orelse Expr Call NameLoad CompareIn Str SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str With Call NameLoad NameStore body With Call NameLoad keyword AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Str With Call NameLoad NameStore body With Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Str If CompareLtE Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str With Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return If UnaryOpNot NameLoad body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr With Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args defaults body For NameStore ListLoad NameLoad NameLoad body Expr Yield TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd NameLoad Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call NameLoad Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad NameStore body Return AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Return BinOpAdd NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return NameLoad decorator_list If BoolOpOr NameLoad NameLoad body Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad FunctionDef arguments args defaults vararg body Raise Call NameLoad Str decorator_list With Call NameLoad Str NameLoad body With Call NameLoad AttributeLoad NameLoad attr NameStore body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call NameLoad Call NameLoad NameLoad keyword NameLoad Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad Str Str Str With Call NameLoad NameLoad NameStore body With Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad keyword NameLoad
N/A N/A Test command call wrapper
 mock patch N/A os os.path dirname join opj N/A sys N/A logging N/A shlex utils ok_ eq_ assert_is assert_equal assert_false assert_true assert_greater assert_raises assert_in SkipTest cmd Runner link_file_load support.exceptions CommandError support.protocol DryRunProtocol utils with_tempfile assert_cwd_unchanged ignore_nose_capturing_stdout swallow_outputs swallow_logs on_linux on_osx on_windows with_testrepos utils lgr utils local_testrepo_flavors test_runner_dry N/A N/A tempfile N/A N/A N/A dry N/A DryRunProtocol N/A runner N/A Runner protocol dry N/A cmd N/A echo Testing dry run > %s tempfile N/A N/A swallow_logs new_level N/A logging DEBUG cml N/A N/A ret N/A N/A runner run cmd N/A N/A assert_equal N/A N/A N/A cml out rstrip N/A {DryRunProtocol} Running: %s cmd N/A N/A assert_equal N/A DRY DRY ret N/A Output of dry run (%s): %s N/A cmd ret N/A N/A assert_equal N/A N/A shlex split cmd posix N/A on_windows N/A N/A dry N/A 0 N/A command N/A N/A assert_false N/A N/A N/A os path exists tempfile N/A output N/A N/A runner call N/A N/A os path join foo bar N/A N/A assert_is None output N/A Dry call of: os.path.join, 'foo', 'bar' returned: %s output N/A N/A assert_in join N/A N/A N/A dry N/A 1 N/A command N/A 0 N/A N/A assert_equal args=('foo', 'bar') N/A N/A N/A dry N/A 1 N/A command N/A 1 N/A ignore_nose_capturing_stdout assert_cwd_unchanged with_tempfile test_runner N/A N/A tempfile N/A N/A N/A runner N/A Runner N/A cmd N/A echo Testing real run > %s tempfile N/A ret N/A N/A runner run cmd N/A N/A assert_true N/A N/A N/A os path exists tempfile N/A Run of: %s resulted with non-existing file %s N/A cmd tempfile N/A output N/A N/A runner call N/A N/A os path join foo bar N/A N/A assert_equal N/A N/A N/A os path join foo bar output N/A Call of: os.path.join, 'foo', 'bar' returned %s output N/A ignore_nose_capturing_stdout assert_cwd_unchanged with_tempfile test_runner_instance_callable_dry N/A N/A N/A N/A N/A cmd_ N/A echo Testing __call__ with string N/A cmd N/A cmd_ N/A N/A join cmd_ N/A N/A dry N/A DryRunProtocol N/A runner N/A Runner protocol dry N/A ret N/A runner cmd N/A N/A eq_ ret N/A DRY DRY N/A N/A assert_equal cmd_ N/A N/A dry N/A 0 N/A command N/A Dry run of Runner.__call__ didn't record command: %s.
Buffer: %s N/A cmd dry N/A ret N/A runner N/A N/A os path join foo bar N/A N/A eq_ ret None N/A N/A assert_in join N/A N/A N/A dry N/A 1 N/A command N/A 0 N/A Dry run of Runner.__call__ didn't record function join().Buffer: %s dry N/A N/A assert_equal args=('foo', 'bar') N/A N/A N/A dry N/A 1 N/A command N/A 1 N/A Dry run of Runner.__call__ didn't record function join().Buffer: %s dry N/A ignore_nose_capturing_stdout test_runner_instance_callable_wet N/A N/A N/A N/A N/A runner N/A Runner N/A cmd N/A N/A sys executable -c print('Testing') N/A out N/A runner cmd N/A N/A eq_ N/A N/A N/A out N/A 0 rstrip Testing N/A N/A eq_ N/A out N/A 1 N/A ret N/A runner N/A N/A os path join foo bar N/A N/A eq_ ret N/A N/A N/A os path join foo bar N/A ignore_nose_capturing_stdout test_runner_log_stderr N/A N/A N/A N/A N/A runner N/A Runner N/A cmd echo stderr-Message should be logged >&2 N/A ret N/A N/A runner run cmd log_stderr True expect_stderr True N/A cmd echo stderr-Message should not be logged >&2 N/A N/A swallow_outputs cmo N/A N/A N/A swallow_logs new_level N/A logging INFO cml N/A N/A ret N/A N/A runner run cmd log_stderr False N/A N/A eq_ N/A N/A N/A cmo err rstrip stderr-Message should not be logged N/A N/A eq_ N/A cml out N/A ignore_nose_capturing_stdout test_runner_log_stdout N/A N/A N/A N/A N/A runner N/A Runner N/A cmd_ N/A echo stdout-Message should be logged N/A cmd N/A cmd_ N/A N/A join cmd_ N/A N/A kw N/A N/A N/A on_windows N/A isinstance cmd list N/A N/A N/A kw N/A shell True N/A N/A swallow_logs N/A logging DEBUG cm N/A N/A ret N/A N/A runner run cmd log_stdout True kw N/A N/A eq_ N/A N/A cm lines N/A 0 N/A Running: %s cmd N/A N/A on_windows N/A N/A N/A eq_ N/A N/A cm lines N/A 1 stdout| stdout-Message should be logged N/A N/A N/A ok_ N/A stdout-Message should be logged N/A N/A cm lines N/A 1 N/A cmd echo stdout-Message should not be logged N/A N/A swallow_outputs cmo N/A N/A N/A swallow_logs new_level N/A logging INFO cml N/A N/A ret N/A N/A runner run cmd log_stdout False N/A N/A eq_ N/A cmo out stdout-Message should not be logged
 N/A N/A eq_ N/A cml out N/A ignore_nose_capturing_stdout check_runner_heavy_output N/A N/A log_online N/A N/A N/A runner N/A Runner N/A cmd N/A %s %s N/A N/A sys executable N/A opj N/A dirname __file__ heavyoutput.py N/A N/A swallow_outputs cm N/A N/A N/A swallow_logs N/A N/A ret N/A N/A runner run cmd log_stderr False log_stdout False expect_stderr True N/A N/A eq_ N/A cm err N/A cm out N/A N/A eq_ N/A N/A cm out N/A 10 [0, 1, 2,  N/A N/A eq_ N/A N/A cm out N/A -15 997, 998, 999]
 N/A N/A N/A N/A lgr getEffectiveLevel N/A logging DEBUG N/A N/A N/A SkipTest Skipping due to too heavy impact on logs complicating debugging N/A N/A swallow_logs N/A N/A ret N/A N/A runner run cmd log_stderr True log_stdout True expect_stderr True N/A N/A N/A log_online N/A N/A cmd N/A %s -c "import sys; x=str(list(range(1000))); [(sys.stdout.write(x), sys.stderr.write(x)) for i in range(100)];" N/A sys executable N/A N/A swallow_logs N/A N/A ret N/A N/A runner run cmd log_stderr True log_stdout True expect_stderr True N/A ignore_nose_capturing_stdout test_runner_heavy_output N/A N/A N/A N/A N/A log_online N/A True False N/A N/A N/A N/A check_runner_heavy_output log_online N/A test_link_file_load N/A N/A tempfile N/A N/A N/A tempfile2 N/A tempfile _ N/A N/A open tempfile w f N/A N/A N/A N/A f write LOAD N/A N/A link_file_load tempfile tempfile2 N/A N/A ok_ N/A N/A N/A os path exists tempfile2 N/A N/A open tempfile2 r f N/A N/A N/A assert_equal N/A N/A f read LOAD inode N/A N/A fname N/A N/A N/A N/A open fname fd N/A N/A N/A N/A N/A os fstat N/A N/A fd fileno st_ino N/A stats N/A N/A fname times N/A True N/A N/A Return stats on the file which should have been preserved N/A N/A open fname fd N/A N/A st N/A N/A os fstat N/A N/A fd fileno N/A stats N/A N/A st st_mode N/A st st_uid N/A st st_gid N/A st st_size N/A times N/A N/A N/A stats N/A N/A st st_atime N/A st st_mtime N/A N/A stats N/A N/A N/A on_linux on_osx N/A N/A N/A assert_equal N/A inode tempfile N/A inode tempfile2 N/A N/A assert_equal N/A stats tempfile N/A stats tempfile2 raise_AttributeError N/A N/A N/A args N/A N/A N/A AttributeError TEST N/A N/A N/A patch os.link raise_AttributeError N/A N/A N/A swallow_logs N/A logging WARNING cm N/A N/A N/A link_file_load tempfile tempfile2 N/A N/A ok_ N/A failed (TEST), copying file N/A cm out N/A N/A ok_ N/A N/A inode tempfile N/A inode tempfile2 N/A N/A open tempfile2 r f N/A N/A N/A assert_equal N/A N/A f read LOAD N/A N/A assert_equal N/A stats tempfile times False N/A stats tempfile2 times False N/A N/A N/A os unlink tempfile2 N/A with_tempfile test_runner_failure N/A N/A dir_ N/A N/A support.annexrepo AnnexRepo N/A repo N/A AnnexRepo dir_ create True N/A runner N/A Runner N/A failing_cmd N/A git-annex add notexistent.dat N/A N/A assert_raises CommandError cme N/A N/A N/A swallow_logs cml N/A N/A N/A N/A runner run failing_cmd cwd dir_ N/A N/A assert_in notexistent.dat not found N/A cml out N/A N/A assert_equal 1 N/A N/A cme exception code N/A N/A with_tempfile mkdir True