|
New ticket
#4998
by
marcel
For
Beanbag, Inc.
▸
RBTools
RemovedInRBTools50Warning: A value of type %s was passed to HttpRequest.add_field. In RBTools 5.0, only values of bytes or str types will be accepted.
What version are you running?
4.0
What steps will reproduce the problem?
Run tests using pytest.
What is the expected output? What do you see instead?
All tests should pass without warnings, but these warnings appear:
rbtools/api/tests/test_http_request.py::HttpRequestTests::test_encode_multipart_formdata
$(@D)/rbtools/api/tests/test_http_request.py:67: RemovedInRBTools50Warning: A value of type %s was passed to HttpRequest.add_field. In RBTools 5.0, only values of bytes or str types will be accepted.
request.add_field('bar', 42)
rbtools/api/tests/test_resource.py::ItemResourceTests::test_update_with_extra_data
rbtools/api/tests/test_resource.py::ItemResourceTests::test_update_with_extra_data
$(@D)/rbtools/api/resource.py:252: RemovedInRBTools50Warning: A value of type %s was passed to HttpRequest.add_field. In RBTools 5.0, only values of bytes or str types will be accepted.
request.add_field(name, value)
rbtools/api/tests/test_resource.py::ListResourceTests::test_create_with_extra_data
rbtools/api/tests/test_resource.py::ListResourceTests::test_create_with_extra_data
$(@D)/rbtools/api/resource.py:188: RemovedInRBTools50Warning: A value of type %s was passed to HttpRequest.add_field. In RBTools 5.0, only values of bytes or str types will be accepted.
request.add_field(name, value)
What operating system are you using?
NA
Attach the debug out from the command.
NA
Please provide any additional information below.
NA
New
Priority:Medium
Type:Defect
|