1
0
python-google-api-core/373-KeyError-in-test.patch
Matej Cepl 3d38aed7dc Accepting request 973994 from home:mcepl:branches:devel:languages:python
- Update to 2.7.2:
  - allow grpc without grpcio-status
  - remove dependency on pkg_resources
- Add 373-KeyError-in-test.patch to allow tests to run
  (gh#googleapis/python-api-core#372)

OBS-URL: https://build.opensuse.org/request/show/973994
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-core?expand=0&rev=38
2022-04-29 22:01:15 +00:00

20 lines
654 B
Diff

From a8065793e7118c47fc71edc4c02447ef4b665209 Mon Sep 17 00:00:00 2001
From: Anthonios Partheniou <partheniou@google.com>
Date: Fri, 29 Apr 2022 13:28:02 -0400
Subject: [PATCH] test: fix KeyError in test_rest_streaming.py
---
tests/unit/test_rest_streaming.py | 1 +
1 file changed, 1 insertion(+)
--- a/tests/unit/test_rest_streaming.py
+++ b/tests/unit/test_rest_streaming.py
@@ -28,6 +28,7 @@ from google.protobuf import duration_pb2
from google.protobuf import timestamp_pb2
+__protobuf__ = proto.module(package=__name__)
SEED = int(time.time())
logging.info(f"Starting rest streaming tests with random seed: {SEED}")
random.seed(SEED)