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",