census-instrumentation / opencensus-python

A stats collection and distributed tracing framework
Apache License 2.0
666 stars 248 forks source link

Use non-deprecated assertion methods #1243

Open s-t-e-v-e-n-k opened 3 months ago

s-t-e-v-e-n-k commented 3 months ago

Both assertDictContainsSubset and assertRaisesRegexp have been deprecated, and removed in Python 3.12. Use assertGreaterEqual on the dictionary items to compare dictionaries instead of assertDictContainsSubset.

Fixes #1242