File apitools-test-clientgen.patch of Package python-google-apitools.4874
--- apitools/gen/client_generation_test.py.orig
+++ apitools/gen/client_generation_test.py
@@ -37,7 +37,9 @@ class ClientGenerationTest(unittest2.Tes
def setUp(self):
super(ClientGenerationTest, self).setUp()
- self.gen_client_binary = 'gen_client'
+ self.gen_client_binary = 'python'
+ script_path = os.path.dirname(os.path.abspath(__file__))
+ self.gen_client_script = script_path + '/' + 'gen_client.py'
@test_utils.SkipOnWindows
@test_utils.RunOnlyOnPython27
@@ -46,6 +48,7 @@ class ClientGenerationTest(unittest2.Tes
with test_utils.TempDir(change_to=True):
args = [
self.gen_client_binary,
+ self.gen_client_script,
'--client_id=12345',
'--client_secret=67890',
'--discovery_url=%s' % api,