Changeset 1671:2a3350ab9374
- Timestamp:
- Oct 8, 2017, 8:00:38 PM (17 months ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ftputil/host.py
r1636 r1671 175 175 # when `_available_child` is called the next time. 176 176 except ftplib.error_reply: 177 continue 178 # Under high load, there may be a socket read timeout 179 # during the last FTP file `close` (see ticket #112). 180 except OSError: 177 181 continue 178 182 else: -
test/test_real_ftp.py
r1663 r1671 675 675 676 676 def test_only_closed_children(self): 677 REMOTE_FILE_NAME = " debian-keyring.tar.gz"677 REMOTE_FILE_NAME = "CONTENTS" 678 678 host = self.host 679 679 with host.open(REMOTE_FILE_NAME, "rb") as file_obj1: … … 688 688 689 689 def test_no_timed_out_children(self): 690 REMOTE_FILE_NAME = " debian-keyring.tar.gz"690 REMOTE_FILE_NAME = "CONTENTS" 691 691 host = self.host 692 692 # Implicitly create child host object. … … 706 706 707 707 def test_no_delayed_226_children(self): 708 REMOTE_FILE_NAME = " debian-keyring.tar.gz"708 REMOTE_FILE_NAME = "CONTENTS" 709 709 host = self.host 710 710 # Implicitly create child host object. … … 874 874 def test_subsequent_reading(self): 875 875 # Open a file for reading. 876 with self.host.open(" debian-keyring.tar.gz", "rb") as file1:876 with self.host.open("CONTENTS", "rb") as file1: 877 877 pass 878 878 # Make sure that there are no problems if the connection is reused. 879 with self.host.open(" debian-keyring.tar.gz", "rb") as file2:879 with self.host.open("CONTENTS", "rb") as file2: 880 880 pass 881 881 assert file1._session is file2._session
Note: See TracChangeset
for help on using the changeset viewer.