From 95279c45ca9c354949674cf6740eb5bbddd9eb27 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Thu, 17 Oct 2024 20:55:50 +0200 Subject: [PATCH] make ruff happy --- psutil/tests/test_process.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index b8f06a46e..0aa0b5a0d 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -14,6 +14,7 @@ import signal import socket import stat +import string import subprocess import sys import textwrap @@ -813,7 +814,7 @@ def test_name(self): @pytest.mark.skipif(PYPY or QEMU_USER, reason="unreliable on PYPY") @pytest.mark.skipif(QEMU_USER, reason="unreliable on QEMU user") def test_long_name(self): - pyexe = create_py_exe(self.get_testfn(suffix="0123456789" * 2)) + pyexe = create_py_exe(self.get_testfn(suffix=string.digits * 2)) cmdline = [ pyexe, "-c",