census-instrumentation / opencensus-python

A stats collection and distributed tracing framework
Apache License 2.0
669 stars 250 forks source link

Use non-deprecated assertion methods #1243

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

s-t-e-v-e-n-k commented 7 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