Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Fixed invalid connect tests for #43
Browse files Browse the repository at this point in the history
requests.get() against threaded_http on https://localhost:4433 now
returns:

"bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong
version number')],)"

instead of an error that ends with "unknown protocol".

Changed expected error string to just be .*
  • Loading branch information
Jim Olsen committed Apr 15, 2018
1 parent ee7d437 commit 2c62e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ddt/ddt_invalid_connects.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"bad_host_and_non_ssl_port": {
"args": {"host": "localhost", "port": "4433"},
"exception": "pytan.exceptions.AuthorizationError",
"error_str": ".*unknown protocol"
"error_str": ".*"
},
"bad_host_and_bad_port": {
"args": {"host": "localhost", "port": "5433"},
Expand Down

0 comments on commit 2c62e3d

Please sign in to comment.