commit 313e5251da4a390fa283c440ffbe0f0ef048ed38 Author: Damian Johnson atagar@torproject.org Date: Sun Jan 27 19:31:42 2013 -0800
Skipping orphaned file check if testing with python 3
The orphaned *.pyc check is both broken with python 3 and pointless since it's an exported copy of the python 2 codebase (we're not acually making changes to it). --- run_tests.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/run_tests.py b/run_tests.py index c66c9f8..9604731 100755 --- a/run_tests.py +++ b/run_tests.py @@ -271,6 +271,16 @@ def load_user_configuration(test_config):
def _clean_orphaned_pyc(): + # If we're running python 3 then the *.pyc files are no longer bundled with + # the *.py. Rather, they're in a __pycache__ directory. + # + # At the moment there's no point in checking for orphaned bytecode with + # python 3 because it's an exported copy of the python 2 codebase, so + # skipping. + + if CONFIG["argument.python3"]: + return + test.output.print_noline(" checking for orphaned .pyc files... ", *test.runner.STATUS_ATTR)
orphaned_pyc = []