Skip to content

Commit c5199eb

Browse files
Update modin/tests/test_metrics.py
Co-authored-by: Mahesh Vashishtha <[email protected]>
1 parent 1ed2a57 commit c5199eb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

modin/tests/test_metrics.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,9 @@ def test_metrics_handler_fails(metric_client):
8787

8888

8989
def test_emit_name_enforced():
90-
try:
91-
MetricsMode.enable()
90+
MetricsMode.enable()
91+
with pytest.raises(KeyError):
9292
emit_metric("Not::A::Valid::Metric::Name", 1.0)
93-
except KeyError:
94-
# error expected
95-
return
96-
assert False
9793

9894

9995
def test_metrics_can_be_opt_out(metric_client):

0 commit comments

Comments
 (0)