From: Victor Stinner <victor.stinner@gmail.com>
Date: Wed, 30 Mar 2016 06:38:05 +0000 (+0200)
Subject: Issue #26295: Fix test_regrtest.test_tools_buildbot_test()
X-Git-Tag: v3.6.0a1~297
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=732599f793281d15a1d28df0ebe63fe1fba52780;p=python

Issue #26295: Fix test_regrtest.test_tools_buildbot_test()

Pass also --testdir option.
---

diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index 013a1b44f3..b4083b8f2c 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -527,7 +527,7 @@ class ProgramsTestCase(BaseTestCase):
     def test_tools_buildbot_test(self):
         # Tools\buildbot\test.bat
         script = os.path.join(ROOT_DIR, 'Tools', 'buildbot', 'test.bat')
-        test_args = []
+        test_args = ['--testdir=%s' % self.tmptestdir]
         if platform.architecture()[0] == '64bit':
             test_args.append('-x64')   # 64-bit build
         if not Py_DEBUG: