Skip to content
Myr

none headers test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

#433

authored by Kenneth Reitz · committed by Kenneth Reitz · parent d806ffc · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • tests:+7 added−0 removed

1 file+7 added−0 removed

modified:tests/test_requests.py+7 added
780 unmodified lines
781 ValueError,782 get,783 'ftp://ftp.kernel.org/pub/')784785 def test_can_have_none_in_header_values(self):786 try:787 # Don't choke on headers with none in the value.788 requests.get(httpbin('headers'), headers={'Foo': None})789 except TypeError:790 self.fail()791792if __name__ == '__main__':793 unittest.main()