Skip to content

Commit

Permalink
replace assert_called_once()
Browse files Browse the repository at this point in the history
no available in python < 3.6
  • Loading branch information
mauriciovasquezbernal committed Nov 13, 2019
1 parent 981f2ba commit 9c44761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-sdk/tests/trace/test_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def test_shutdown(self):

tracer.shutdown()

mock_processor1.shutdown.assert_called_once()
mock_processor2.shutdown.assert_called_once()
self.assertEqual(mock_processor1.shutdown.call_count, 1)
self.assertEqual(mock_processor2.shutdown.call_count, 1)

shutdown_python_code = """
import atexit
Expand Down

0 comments on commit 9c44761

Please sign in to comment.