-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[test_sub_port_l2_forwarding] [test issue] TypeError: a bytes-like object is required, not 'str' #7884
Comments
AharonMalkin
changed the title
[test_sub_port_l2_forwarding] [test issue] a bytes-like object is required, not 'str'
[test_sub_port_l2_forwarding] [test issue] TypeError: a bytes-like object is required, not 'str'
Mar 28, 2023
Merged
6 tasks
Working on it |
6 tasks
wsycqyz
added a commit
that referenced
this issue
Apr 21, 2023
Summary: Fixes #7884 [test_sub_port_l2_forwarding] [test issue] TypeError: a bytes-like object is required, not 'str' What is the motivation for this PR? test sub_port_interfaces/test_sub_port_l2_forwarding.py fail over python3 issue: TypeError: a bytes-like object is required, not 'str' How did you do it? In Python3, a string cannot work with bytes Use str to convert bytes to string How did you verify/test it? The change can work both in Python2 and Python3.
wangxin
pushed a commit
that referenced
this issue
Jun 15, 2023
mrkcmo
pushed a commit
to Azarack/sonic-mgmt
that referenced
this issue
Oct 3, 2023
Fix the issues: sonic-net#7866 and sonic-net#7884 What is the motivation for this PR? Fix the test failure caused by python3 migration How did you verify/test it? Run qos sai and test_sub_port_l2_forwarding, and it could pass
AharonMalkin
pushed a commit
to AharonMalkin/sonic-mgmt
that referenced
this issue
Jan 25, 2024
Summary: Fixes sonic-net#7884 [test_sub_port_l2_forwarding] [test issue] TypeError: a bytes-like object is required, not 'str' What is the motivation for this PR? test sub_port_interfaces/test_sub_port_l2_forwarding.py fail over python3 issue: TypeError: a bytes-like object is required, not 'str' How did you do it? In Python3, a string cannot work with bytes Use str to convert bytes to string How did you verify/test it? The change can work both in Python2 and Python3.
AharonMalkin
pushed a commit
to AharonMalkin/sonic-mgmt
that referenced
this issue
Jan 25, 2024
Fix the issues: sonic-net#7866 and sonic-net#7884 What is the motivation for this PR? Fix the test failure caused by python3 migration How did you verify/test it? Run qos sai and test_sub_port_l2_forwarding, and it could pass
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
test sub_port_interfaces/test_sub_port_l2_forwarding.py fail over python3 issue:
TypeError: a bytes-like object is required, not 'str'
Steps to reproduce the issue:
run test_sub_port_l2_forwarding.py
Describe the results you received:
Describe the results you expected:
test passes without test issues
Additional information you deem important:
Output of
show version
:The text was updated successfully, but these errors were encountered: