Index: chrome/test/webdriver/run_webdriver_tests.py |
diff --git a/chrome/test/webdriver/run_webdriver_tests.py b/chrome/test/webdriver/run_webdriver_tests.py |
index 527846aa0d1cc1f63e35edb0c3765fb5187c10a3..7e798160ee8a903aaf5dee4de917f0df7a4bbad8 100644 |
--- a/chrome/test/webdriver/run_webdriver_tests.py |
+++ b/chrome/test/webdriver/run_webdriver_tests.py |
@@ -243,8 +243,21 @@ class Main(object): |
logging.debug('Excluded %d test(s): %s' % (len(excluded), excluded)) |
return args |
+ def _FakePytestHack(self): |
+ """Adds a fake 'pytest' module to the system modules. |
+ |
+ This is a hack for getting the text_handling_tests to run. It is the only |
dennis_jeffrey
2011/03/23 16:57:02
Optional: you may want to describe why this hack e
kkania
2011/03/26 01:58:32
Done.
|
+ file that uses the pytest module, which we're not sure we want to pull |
+ into chromium yet. |
dennis_jeffrey
2011/03/23 16:57:02
This comment may be ambiguous: what is it that you
kkania
2011/03/26 01:58:32
Done.
|
+ """ |
+ import imp |
+ sys.modules['pytest'] = imp.new_module('pytest') |
+ |
def _Run(self): |
"""Run the tests.""" |
+ # TODO(kkania): Remove this hack. |
+ self._FakePytestHack() |
+ |
test_names = self._GetTestNames(self._args) |
# The tests expect to run with preset 'driver' and 'webserver' class |