Skip to content

Commit 1c6033e

Browse files
committed
Fix broken test and formatting
1 parent d229af0 commit 1c6033e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

exporter/opentelemetry-exporter-credential-provider-gcp/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
OpenTelemetry GCP Credential Provider for OTLP Exporters
2-
==============================================
2+
========================================================
33

44
.. image:: https://badge.fury.io/py/opentelemetry-exporter-credential-provider-gcp.svg
55
:target: https://badge.fury.io/py/opentelemetry-exporter-credential-provider-gcp

exporter/opentelemetry-exporter-credential-provider-gcp/tests/test_credential_provider.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
from os import environ
15+
from platform import python_implementation
1516
from unittest import TestCase
1617
from unittest.mock import MagicMock, patch
1718

1819
from google.auth.transport.requests import AuthorizedSession
20+
from pytest import mark
1921

2022
from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
2123
OTLPSpanExporter,
@@ -37,6 +39,9 @@ class TestOTLPTraceAutoInstrumentGcpCredential(TestCase):
3739
_OTEL_PYTHON_EXPORTER_OTLP_GRPC_TRACES_CREDENTIAL_PROVIDER: "gcp_grpc_credentials",
3840
},
3941
)
42+
@mark.skipif(
43+
python_implementation() == "PyPy", reason="Fails randomly in pypy"
44+
)
4045
def test_loads_otlp_exporters_with_google_creds(
4146
self, mock_default: MagicMock
4247
): # pylint: disable=no-self-use

0 commit comments

Comments
 (0)