From 9b9c22e9851531a76dc1c0fda38a3da43aa02059 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sun, 23 Jun 2024 22:34:08 +0200 Subject: [PATCH] fix test --- pyftpdlib/test/test_functional.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyftpdlib/test/test_functional.py b/pyftpdlib/test/test_functional.py index 73d151fc..457f462a 100644 --- a/pyftpdlib/test/test_functional.py +++ b/pyftpdlib/test/test_functional.py @@ -2720,7 +2720,9 @@ def test_stou_max_tries(self): class TestFS(AbstractedFS): def mkstemp(self, *args, **kwargs): - raise FileExistsError + raise OSError( + errno.EEXIST, "No usable temporary file name found" + ) self.server = self.server_class() self.server.handler.abstracted_fs = TestFS