Skip to content

Commit

Permalink
improve pytest.raises matches
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jun 28, 2024
1 parent 67ae0a3 commit 8a40cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyftpdlib/test/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,9 @@ def test_rmd(self):

def test_dele(self):
self.client.delete(self.tempfile)
with pytest.raises(ftplib.error_perm, match="Is a directory"):
with pytest.raises(
ftplib.error_perm, match="Is a directory|Operation not permitted"
):
self.client.delete(self.tempdir)

def test_rnfr_rnto(self):
Expand Down

0 comments on commit 8a40cfe

Please sign in to comment.