Module Expr Str ImportFrom alias Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias alias alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Num attr If NameLoad body Return Call AttributeLoad Str attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body TryExcept body Expr Call NameLoad ListLoad NameLoad Str Str keyword NameLoad Expr Yield NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad ListLoad Str Str NameLoad Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body TryExcept body Expr Call NameLoad ListLoad Str Str NameLoad handlers ExceptHandler type NameLoad body Expr Call NameLoad ListLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad ListLoad Str Str Str TryExcept body Expr Call NameLoad ListLoad Str Str Str Str handlers ExceptHandler type NameLoad body Expr Call NameLoad ListLoad Str Str NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad Call NameLoad ListLoad Str Str Str Str attr Str attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Str Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad ListLoad Str Str Str NameLoad Expr Call NameLoad ListLoad Str Str Str NameLoad Expr Call NameLoad ListLoad Str Str Str Str NameLoad NameLoad Expr Call NameLoad ListLoad Str Str Str BinOpMod Str TupleLoad NameLoad NameLoad orelse Expr Call NameLoad ListLoad Str Str NameLoad NameLoad Expr Call NameLoad ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Return NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore BinOpAdd BinOpAdd SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Str Str NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Str Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Slice Num Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpAdd ListLoad NameLoad NameLoad BinOpAdd Str AttributeLoad NameLoad attr Str ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str BinOpAdd Str Call AttributeLoad Str attr AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore BinOpAdd BinOpAdd SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Str Str NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Str Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Slice Num Expr Call NameLoad Str Expr Call NameLoad BinOpMod Str NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Str orelse Assign NameStore Str AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call NameLoad AttributeLoad NameLoad attr Str Str Expr Call NameLoad Str BoolOpOr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad Str Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameStore body Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr BinOpAdd SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Slice Num Str With Call AttributeLoad NameLoad attr NameLoad Str keyword Str NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str Expr Call NameLoad BinOpMod Str NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call NameLoad ListLoad NameLoad Str Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad TryExcept body Assign NameStore ListLoad NameLoad Str Str Assign NameStore Call NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Return TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str If UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Str Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore ListLoad NameLoad Str Str TryExcept body Return TupleLoad NameLoad Call AttributeLoad Call NameLoad NameLoad keyword NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Return TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Expr Call NameLoad Str NameLoad decorator_list If CompareEq NameLoad Str body Import alias Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Import alias Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd CompareEq NameLoad Num CompareLt NameLoad Num body Expr Call NameLoad Str Expr Call NameLoad Str Str Call AttributeLoad Str attr NameLoad NameLoad NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr
N/A N/A 
This is a script for testing pull requests for NetworkX. It merges the pull
request with current master, installs and tests on all available versions of
Python, and posts the results to Gist if any tests fail.

This script is heavily based on IPython's test_pr.py and friends. See:

http://github.com/ipython/ipython/tree/master/tools

Usage:
    python test_pr.py 742
 __future__ print_function N/A errno glob glob N/A io N/A json N/A os N/A pickle N/A re N/A requests N/A shutil N/A time subprocess call check_call check_output PIPE STDOUT CalledProcessError N/A sys N/A gh_api gh_api Obj N/A basedir N/A N/A N/A os path join N/A N/A N/A os path expanduser ~ .nx_pr_tests N/A repodir N/A N/A N/A os path join basedir networkx N/A nx_repository git://github.com/networkx/networkx.git N/A nx_http_repository http://github.com/networkx/networkx.git N/A gh_project networkx/networkx N/A supported_pythons N/A python2.6 python2.7 python3.2 python3.3 N/A missing_libs_re N/A N/A re compile SKIP: (\w+) not available get_missing_libraries N/A N/A log N/A N/A N/A libs N/A set N/A line N/A N/A log split N/A N/A m N/A N/A missing_libs_re search line N/A m N/A N/A N/A N/A libs add N/A N/A N/A N/A m group 1 lower N/A libs N/A N/A N/A N/A ,  join libs N/A N/A skipped_re N/A N/A re compile SKIP=(\d+) get_skipped N/A N/A log N/A N/A N/A m N/A N/A skipped_re search log N/A m N/A N/A N/A N/A m group 1 N/A N/A number_tests_re N/A N/A re compile Ran (\d+) tests in get_number_tests N/A N/A log N/A N/A N/A m N/A N/A number_tests_re search log N/A m N/A N/A N/A N/A m group 1 N/A TestRun N/A object N/A __init__ N/A N/A self pr_num N/A N/A N/A N/A self unavailable_pythons N/A N/A N/A self venvs N/A N/A N/A self pr_num pr_num N/A N/A self pr N/A N/A gh_api get_pull_request gh_project pr_num N/A N/A N/A self setup N/A N/A self results N/A N/A available_python_versions N/A N/A self N/A N/A N/A Get the executable names of available versions of Python on the system.
         N/A py supported_pythons N/A N/A N/A N/A N/A check_call N/A py -c import nose stdout PIPE N/A N/A py N/A N/A N/A N/A OSError CalledProcessError N/A N/A N/A N/A N/A self unavailable_pythons append py N/A setup N/A N/A self N/A N/A N/A Prepare the repository and virtualenvs. N/A N/A N/A N/A N/A os mkdir basedir N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A errno EEXIST N/A N/A N/A N/A N/A os chdir basedir N/A venv N/A glob venv-* N/A N/A N/A N/A shutil rmtree venv N/A py N/A N/A self available_python_versions N/A N/A N/A check_call N/A virtualenv -p py --system-site-packages N/A venv-%s py N/A N/A N/A N/A self venvs append N/A py N/A venv-%s py N/A N/A N/A N/A N/A os path exists networkx N/A N/A N/A N/A N/A check_call N/A git clone nx_repository N/A N/A N/A CalledProcessError N/A N/A N/A check_call N/A git clone nx_http_repository N/A N/A N/A os chdir repodir N/A N/A check_call N/A git checkout master N/A N/A N/A N/A check_call N/A git pull origin master N/A N/A N/A CalledProcessError N/A N/A N/A check_call N/A git pull nx_http_repository master N/A N/A self master_sha N/A N/A N/A N/A N/A check_output N/A git log -1 --format=%h decode ascii strip N/A N/A N/A os chdir basedir N/A get_branch N/A N/A self N/A N/A N/A repo N/A N/A N/A N/A self pr N/A head N/A repo N/A clone_url N/A branch N/A N/A N/A self pr N/A head N/A ref N/A owner N/A N/A N/A N/A N/A self pr N/A head N/A repo N/A owner N/A login N/A mergeable N/A N/A self pr N/A mergeable N/A N/A N/A os chdir repodir N/A mergeable N/A N/A merged_branch N/A %s-%s N/A owner branch N/A N/A call N/A git branch -D merged_branch N/A N/A check_call N/A git checkout -b merged_branch N/A N/A check_call N/A git pull --no-ff --no-commit repo branch N/A N/A check_call N/A git commit -m N/A merge %s/%s N/A repo branch N/A N/A N/A check_call N/A git fetch repo branch N/A N/A check_call N/A git checkout FETCH_HEAD N/A N/A N/A os chdir basedir N/A markdown_format N/A N/A self N/A N/A format_result N/A N/A result N/A N/A N/A s N/A * %s:  N/A result py N/A N/A result passed N/A N/A s N/A %s OK (SKIP=%s) Ran %s tests N/A ok N/A result skipped N/A result num_tests N/A N/A s N/A %s Failed, log at %s N/A fail N/A result log_url N/A N/A result missing_libraries N/A N/A s N/A N/A  (libraries not available:  N/A result missing_libraries ) N/A s N/A N/A pr_num N/A self pr_num N/A branch N/A N/A N/A self pr N/A head N/A ref N/A branch_url N/A N/A N/A N/A N/A N/A self pr N/A head N/A repo N/A html_url /tree/ branch N/A owner N/A N/A N/A N/A N/A self pr N/A head N/A repo N/A owner N/A login N/A mergeable N/A N/A self pr N/A mergeable N/A master_sha N/A self master_sha N/A branch_sha N/A N/A N/A N/A self pr N/A head N/A sha N/A 7 N/A ok :eight_spoked_asterisk: N/A fail :red_circle: N/A header N/A **NetworkX: Test results for pull request #%s  pr_num N/A header N/A ([%s '%s' branch](%s))** N/A owner branch branch_url N/A mergeable N/A N/A mrg N/A %s This pull request can be merged cleanly  ok N/A N/A mrg N/A %s This pull request **cannot** be merged cleanly  fail N/A mrg N/A (commit %s into NetworkX master %s) N/A branch_sha master_sha N/A lines N/A N/A header mrg N/A Platform:  N/A sys platform N/A N/A format_result r N/A r N/A self results N/A N/A self unavailable_pythons N/A N/A lines N/A N/A Not available for testing:  N/A N/A ,  join N/A self unavailable_pythons N/A N/A N/A join lines N/A post_results_comment N/A N/A self N/A N/A N/A body N/A N/A self markdown_format N/A N/A N/A gh_api post_issue_comment gh_project N/A self pr_num body N/A print_results N/A N/A self N/A N/A N/A pr_num N/A self pr_num N/A branch N/A N/A N/A self pr N/A head N/A ref N/A branch_url N/A N/A N/A N/A N/A N/A self pr N/A head N/A repo N/A html_url /tree/ branch N/A owner N/A N/A N/A N/A N/A self pr N/A head N/A repo N/A owner N/A login N/A mergeable N/A N/A self pr N/A mergeable N/A master_sha N/A self master_sha N/A branch_sha N/A N/A N/A N/A self pr N/A head N/A sha N/A 7 N/A N/A print N/A N/A print N/A **NetworkX: Test results for pull request %s  pr_num N/A (%s '%s' branch at %s)** N/A owner branch branch_url N/A mergeable N/A N/A mrg OK: This pull request can be merged cleanly  N/A N/A mrg FAIL: This pull request **cannot** be merged cleanly  N/A mrg N/A (commit %s into NetworkX master %s) N/A branch_sha master_sha N/A N/A print mrg N/A N/A print Platform: N/A sys platform N/A result N/A self results N/A N/A N/A result passed N/A N/A N/A print N/A result py : N/A OK (SKIP=%s) Ran %s tests N/A N/A result skipped N/A result num_tests N/A N/A N/A print N/A result py : Failed N/A N/A print     Test log: N/A N/A N/A result get log_url N/A result log_file N/A N/A result missing_libraries N/A N/A N/A print     Libraries not available: N/A result missing_libraries N/A N/A self unavailable_pythons N/A N/A N/A print Not available for testing: N/A N/A ,  join N/A self unavailable_pythons N/A dump_results N/A N/A self N/A N/A N/A N/A open N/A N/A N/A os path join basedir lastresults.pkl wb f N/A N/A N/A N/A pickle dump self f N/A load_results N/A N/A N/A N/A N/A N/A open N/A N/A N/A os path join basedir lastresults.pkl rb f N/A N/A N/A N/A pickle load f N/A staticmethod save_logs N/A N/A self N/A N/A N/A result N/A self results N/A N/A N/A N/A result passed N/A N/A result_locn N/A N/A N/A os path abspath N/A N/A N/A os path join N/A venv-%s N/A result py N/A N/A N/A N/A N/A self pr N/A head N/A sha N/A 7 .log N/A N/A N/A io open result_locn w encoding utf-8 f N/A N/A N/A N/A f write N/A result log N/A N/A result log_file result_locn N/A post_logs N/A N/A self N/A N/A N/A result N/A self results N/A N/A N/A N/A result passed N/A N/A N/A result log_url N/A N/A gh_api post_gist N/A result log description NetworkX test log filename results.log auth True N/A run N/A N/A self N/A N/A N/A N/A py venv N/A self venvs N/A N/A tic N/A N/A time time N/A N/A passed log N/A run_tests venv N/A elapsed N/A int N/A N/A N/A time time tic N/A N/A print N/A Ran tests with %s in %is N/A py elapsed N/A missing_libraries N/A get_missing_libraries log N/A skipped N/A get_skipped log N/A num_tests N/A get_number_tests log N/A N/A N/A N/A self results append N/A Obj py py passed passed log log missing_libraries missing_libraries skipped skipped num_tests num_tests N/A N/A run_tests N/A N/A venv N/A N/A N/A version N/A N/A N/A venv split - N/A 1 N/A py N/A N/A N/A os path join basedir venv bin python N/A N/A N/A os chdir repodir N/A N/A N/A N/A os path exists build N/A N/A N/A N/A shutil rmtree build N/A N/A print N/A 
Installing NetworkX with %s py N/A logfile N/A N/A N/A os path join basedir venv install.log N/A N/A print N/A Install log at %s logfile N/A N/A open logfile wb f N/A N/A N/A check_call N/A py setup.py install stderr STDOUT stdout f N/A N/A N/A os chdir basedir N/A N/A N/A N/A os environ pop PYTHONPATH None N/A N/A N/A cmd_file N/A py -c import networkx as nx; print(nx.__file__) N/A nx_file N/A check_output cmd_file stderr STDOUT N/A N/A N/A CalledProcessError N/A e N/A N/A N/A False N/A N/A N/A e output decode utf-8 N/A nx_file N/A N/A N/A N/A nx_file strip decode utf-8 N/A N/A N/A N/A nx_file startswith N/A N/A N/A os path join basedir venv N/A N/A msg N/A NetworkX does not appear to be in the venv: %s nx_file N/A msg 
Do you use setupegg.py develop? N/A N/A print msg file N/A sys stderr N/A N/A False msg N/A N/A print N/A 
Running tests with %s ... version N/A cmd N/A py -c import networkx as nx; nx.test(verbosity=2,doctest=True) N/A N/A N/A N/A True N/A N/A N/A check_output cmd stderr STDOUT decode utf-8 N/A N/A N/A CalledProcessError N/A e N/A N/A N/A False N/A N/A N/A e output decode utf-8 N/A test_pr N/A N/A num post_results N/A True N/A N/A post_results N/A N/A N/A N/A gh_api get_auth_token N/A testrun N/A TestRun num N/A N/A N/A testrun get_branch N/A N/A N/A testrun run N/A N/A N/A testrun dump_results N/A N/A N/A testrun save_logs N/A N/A N/A testrun print_results N/A post_results N/A N/A results_urls N/A N/A testrun post_logs N/A N/A N/A testrun post_results_comment N/A N/A print (Posted to Github) N/A N/A post_script N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A sys argv N/A 0 post_pr_test.py N/A N/A print To post the results to Github, run post_script N/A N/A N/A __name__ __main__ N/A N/A argparse N/A parser N/A N/A argparse ArgumentParser description Test a pull request for NetworkX N/A N/A N/A parser add_argument -p --publish action store_true help Publish the results to Github N/A N/A N/A parser add_argument number type int help The pull request number N/A args N/A N/A parser parse_args N/A requests N/A N/A major minor rev N/A map int N/A N/A N/A requests __version__ split . N/A N/A N/A major 0 N/A minor 10 N/A N/A N/A print test_pr.py: N/A N/A print The requests python library must be version 0.10.0 or above, you have version N/A N/A {0}.{1}.{2} installed format major minor rev N/A N/A print N/A N/A N/A sys exit 1 N/A N/A test_pr N/A args number post_results N/A args publish