Skip to content

Commit 4b68c87

Browse files
committed
fix tests
1 parent 5bde8d7 commit 4b68c87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opentelemetry-sdk/tests/metrics/test_metrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
import weakref
1415

1516
# pylint: disable=protected-access,no-self-use
1617

@@ -67,7 +68,7 @@ def shutdown(self, timeout_millis: float = 30_000, **kwargs) -> None:
6768
class TestMeterProvider(ConcurrencyTestBase, TestCase):
6869
def tearDown(self):
6970

70-
MeterProvider._all_metric_readers = set()
71+
MeterProvider._all_metric_readers = weakref.WeakSet()
7172

7273
@patch.object(Resource, "create")
7374
def test_init_default(self, resource_patch):

0 commit comments

Comments
 (0)