1
0
mirror of https://github.com/httpie/cli.git synced 2025-07-15 01:34:27 +02:00

Minor clean-up (#1112)

* Remove Python 2 clean-up misses

* Remove unused `Environment.devnull` setter

* Simplifies `get_filename_max_length()`
This commit is contained in:
Mickaël Schoentgen
2021-07-26 23:56:38 +02:00
committed by GitHub
parent 2f8d7f77bd
commit 04d05a8abd
4 changed files with 5 additions and 18 deletions

View File

@ -189,7 +189,7 @@ class TestSession(SessionTestBase):
httpbin.url + '/get', env=self.env())
assert HTTP_OK in r2
# FIXME: Authorization *sometimes* is not present on Python3
# FIXME: Authorization *sometimes* is not present
assert (r2.json['headers']['Authorization']
== HTTPBasicAuth.make_header('test', UNICODE))
# httpbin doesn't interpret utf8 headers