Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(981)

Unified Diff: Tools/Scripts/webkitpy/thirdparty/unittest2/collector.py

Issue 18418010: Check in the thirdparty libs needed for webkitpy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/Scripts/webkitpy/thirdparty/unittest2/collector.py
diff --git a/Tools/Scripts/webkitpy/thirdparty/unittest2/collector.py b/Tools/Scripts/webkitpy/thirdparty/unittest2/collector.py
new file mode 100644
index 0000000000000000000000000000000000000000..28ff3f89ce7d4a42dadf5113dbd0a8c75204feda
--- /dev/null
+++ b/Tools/Scripts/webkitpy/thirdparty/unittest2/collector.py
@@ -0,0 +1,9 @@
+import os
+import sys
+from unittest2.loader import defaultTestLoader
+
+def collector():
+ # import __main__ triggers code re-execution
+ __main__ = sys.modules['__main__']
+ setupDir = os.path.abspath(os.path.dirname(__main__.__file__))
+ return defaultTestLoader.discover(setupDir)
« no previous file with comments | « Tools/Scripts/webkitpy/thirdparty/unittest2/case.py ('k') | Tools/Scripts/webkitpy/thirdparty/unittest2/compatibility.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698