8000 file-transfer: writing tests and ensuring that all is going well by meysam81 · Pull Request #2413 · TheAlgorithms/Python · GitHub
[go: up one dir, main page]

Skip to content

file-transfer: writing tests and ensuring that all is going well #2413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 11, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update send_file.py
  • Loading branch information
cclauss authored Sep 11, 2020
commit 223fd192dba65f755c8c0103b5148edb077dc16e
4 changes: 2 additions & 2 deletions file_transfer/send_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ def send_file(filename: str = "mytext.txt", testing: bool = False) -> None:

print("Done sending")
conn.close()
if testing: # Allow the test to complete
if testing: # Allow the test to complete
break

sock.shutdown(1)
sock.close()


if __name__ == "__main__":
run_script()
send_file()
0