Skip to content

Commit

Permalink
tests/client: fix pytest mark skipif syntax (#2019)
Browse files Browse the repository at this point in the history
For some reason tests passed with this but now are failing because
pytest test does not recognize skipIf.
  • Loading branch information
xrmx authored Apr 2, 2024
1 parent 3688340 commit 6eca846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/client/client_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def test_custom_transport(elasticapm_client):
assert isinstance(elasticapm_client._transport, DummyTransport)


@pytest.mark.skipIf(simplejson_dumps is None)
@pytest.mark.skipif(simplejson_dumps is None, reason="no test without simplejson")
@pytest.mark.parametrize(
"elasticapm_client", [{"transport_json_serializer": "elasticapm.utils.simplejson_encoder.dumps"}], indirect=True
)
Expand Down

0 comments on commit 6eca846

Please sign in to comment.