Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aabmass committed Sep 28, 2021
1 parent 22bc182 commit 6808fce
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions opentelemetry-api/tests/metrics/test_measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@

class TestMeasurement(TestCase):
def test_measurement_init(self):
# int
Measurement(321, {"hello": "world"})
try:
# int
Measurement(321, {"hello": "world"})

# float
Measurement(321.321, {"hello": "world"})
# float
Measurement(321.321, {"hello": "world"})
except Exception: # pylint: disable=broad-except
self.fail(
"Unexpected exception raised when instantiating Measurement"
)

def test_measurement_equality(self):
self.assertEqual(
Expand Down

0 comments on commit 6808fce

Please sign in to comment.