[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Skipping orphaned file check if testing with python 3
commit 313e5251da4a390fa283c440ffbe0f0ef048ed38
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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 = []
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits