From 17d4965d632357a6d980a0f26409dd1328cbeda8 Mon Sep 17 00:00:00 2001 From: Anna Kukliansky Date: Wed, 21 Aug 2024 16:28:03 -0700 Subject: [PATCH] refactor m* Reviewed By: mofa28 Differential Revision: D61433569 fbshipit-source-id: 670b1d6c48f3373509e508b8a83a7dfdcc6fbdd0 --- mcrouter/test/test_async_files_attr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcrouter/test/test_async_files_attr.py b/mcrouter/test/test_async_files_attr.py index 033766215..28afe818b 100644 --- a/mcrouter/test/test_async_files_attr.py +++ b/mcrouter/test/test_async_files_attr.py @@ -5,11 +5,11 @@ # LICENSE file in the root directory of this source tree. +import importlib.resources import json import os import time -from libfb.py import parutil from mcrouter.test.McrouterTestCase import McrouterTestCase @@ -54,7 +54,7 @@ def test_stats_no_requests(self): def test_async_files_attr(self): mcrouter = self.add_mcrouter(self.config, extra_args=self.extra_args) - binary = parutil.get_file_path("mcrouter/client_binary") + binary = str(importlib.resources.files("mcrouter").joinpath("client_binary")) port = str(mcrouter.getport()) args = '\'{"key":"abcd", "attributes":{"a1":1000, "a2":2000}}\'' command = binary + " -p " + port + " delete " + args