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

Unified Diff: tools/telemetry/third_party/coverage/tests/backtest.py

Issue 1366913004: Add coverage Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/telemetry/third_party/coverage/tests/backtest.py
diff --git a/tools/telemetry/third_party/coverage/tests/backtest.py b/tools/telemetry/third_party/coverage/tests/backtest.py
new file mode 100644
index 0000000000000000000000000000000000000000..827e891f978a8fb8ee3ee078d9bd7aa97e15c9f9
--- /dev/null
+++ b/tools/telemetry/third_party/coverage/tests/backtest.py
@@ -0,0 +1,19 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Add things to old Pythons so I can pretend they are newer, for tests."""
+
+# pylint: disable=redefined-builtin
+# (Redefining built-in blah)
+# The whole point of this file is to redefine built-ins, so shut up about it.
+
+
+# No more execfile in Py3
+try:
+ execfile = execfile
+except NameError:
+ def execfile(filename, globs):
+ """A Python 3 implementation of execfile."""
+ with open(filename) as fobj:
+ code = fobj.read()
+ exec(compile(code, filename, 'exec'), globs)
« no previous file with comments | « tools/telemetry/third_party/coverage/tests/__init__.py ('k') | tools/telemetry/third_party/coverage/tests/coveragetest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698