Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the Python 3 incompatibility in crypto utils
Write the downloaded file as text since the file is opened in text mode. fixes #476 Signed-off-by: Jeremy Cline <jeremy@jcline.org>
- Loading branch information
1 parent
c0571a8
commit a4f068e
Showing
3 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...sg/tests/fixtures/vcr/fedmsg.tests.crypto.test_utils.LoadRemoteCertTests.test_remote_cert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: ['*/*'] | ||
Accept-Encoding: ['gzip, deflate'] | ||
Connection: [keep-alive] | ||
User-Agent: [python-requests/2.18.4] | ||
method: GET | ||
uri: https://fedoraproject.org/fedmsg/ca.crt | ||
response: | ||
body: | ||
string: !!binary | | ||
H4sIAAAAAAAAA6WUy5KiShCG9/UUZ290NCioLOvG1QKLq7BTaEFpRe3WAp5+UKOnZ86Z1ZnaVEQG | ||
+Wfy5V/58jIcRA3L/QdTP7R0C8OQ3oMvgFkW6XqMYR+UUFgIlpYNPZebdbHUW1VnUDJwcDYCazMh | ||
nCLEI8gso2T8Q2CeEhBzblBhx1FPFwzWBpQjihHDYc1aSqCHSjdGMA+RbFcbIz5l47LVexg/400I | ||
SJ29Z4bWpQHi+UE7Z4krMT4XZFAfxBdUZIcs8T/zcd6SHrrPRBaiwz1P7kHW0+W9zXtlx2dGdojr | ||
zco9siAVNkxtp8ms6pa7kNdIr4pqSDptanQXveUHXYCvqouD1mU9fNOF1LI9nLAw6oZbuCRbD7Hu | ||
GWM/Y18cAH62+r85gDuIv+EA7iD+hgO4g/idA0bHR5X6XNU7QxMSgpzqcPiTPYeiTGtcphR+FrJN | ||
PusJmE/G4xM+LdBieRXXbWrURTmVlqv9O7nZ7eUsNWFOm6XCZTFauWRaK6NR2W877ey+RyFNgXeS | ||
J+7H2uj223rqONcg3ozGK0W77W0rfSVFPJ1F/Saq0/SsNotTTw6zTJNaxboJiJZBClw+qqp1s/DE | ||
cRooTrEtfCyNosYithOPbNh0EoaCQrj28MBAlCXVGXrwKkjJE4CQf+H6RaXlzk7eikzlKxlWkhMe | ||
5xEkGMn3SfjSHlmmyyzTKf/1PfgtwTHQ6RygZgDZkG9PoIrhOGYt7qH9HGEZwlolzIcCkPIxa5OK | ||
IkiT9n2dFA3zc6E/PeBQoRpP29IyMu3b+hDvC/I9doDbX+b+bR7yR/Pg+ucjGrxzYJgb4Je3bkM/ | ||
XaVD0jpR4UN0Ylf5V1WsDl28YczJPkKqGbb5mx9CBu7Kps8oCiGB3Hz90wKBioGgs4+81cWA1kku | ||
t9dNcfBo0W0YGC9YoLl6DpXJfHJ0ikpJ0cUbK03mjXsoa0kQxJzOtriTXnf6PGiVmafttrVpWqTO | ||
bzPg2yOVRNMPv44IuShaVM50vfPn8cqzQyWKZvGucmOZ1eV7gpfKpdtbSS6uqqoYYV9qCDDzYiTa | ||
FQVuqLfS6yls+yN4rEvqkv+u0B/hSo9jXwUAAA== | ||
headers: | ||
Accept-Ranges: [bytes] | ||
AppServer: [proxy08.fedoraproject.org] | ||
AppTime: [D=917] | ||
Connection: [Keep-Alive] | ||
Content-Encoding: [gzip] | ||
Content-Length: ['826'] | ||
Date: ['Wed, 06 Sep 2017 14:35:42 GMT'] | ||
ETag: ['"55f-52243d9164097-gzip"'] | ||
Keep-Alive: ['timeout=15, max=500'] | ||
Last-Modified: ['Sat, 17 Oct 2015 02:41:23 GMT'] | ||
Server: [Apache/2.4.6 (Red Hat Enterprise Linux)] | ||
Vary: ['Accept-Encoding,User-Agent'] | ||
status: {code: 200, message: OK} | ||
version: 1 |