Skip to content

Commit

Permalink
adjust test not to use error_temp
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jun 21, 2024
1 parent 5bb425d commit 682aa37
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyftpdlib/test/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -2084,9 +2084,10 @@ def test_on_incomplete_file_received(self):
break
# If a data transfer is in progress server is supposed to send
# a 426 reply followed by a 226 reply.
with pytest.raises(ftplib.error_temp):
self.client.getresp() # 426
assert self.client.getresp()[:3] == "226"
resp = self.client.getmultiline()
assert resp == "426 Transfer aborted via ABOR."
resp = self.client.getmultiline()
assert resp.startswith("226")
self.read_file(
'on_connect,on_login:%s,on_incomplete_file_received:%s,'
% (USER, self.testfn2)
Expand Down

0 comments on commit 682aa37

Please sign in to comment.