Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
msoltysik committed Oct 15, 2024
1 parent 5bde8d7 commit 4b68c87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opentelemetry-sdk/tests/metrics/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import weakref

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

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

MeterProvider._all_metric_readers = set()
MeterProvider._all_metric_readers = weakref.WeakSet()

@patch.object(Resource, "create")
def test_init_default(self, resource_patch):
Expand Down

0 comments on commit 4b68c87

Please sign in to comment.