Skip to content

tests: fix python TypeError errors#3319

Open
ikegami-t wants to merge 1 commit intolinux-nvme:masterfrom
ikegami-t:tests-type-error
Open

tests: fix python TypeError errors#3319
ikegami-t wants to merge 1 commit intolinux-nvme:masterfrom
ikegami-t:tests-type-error

Conversation

@ikegami-t
Copy link
Copy Markdown
Contributor

This is to fix the errors below.

if self.host_behavior_data[4] & cross_namespace_copy:
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~

TypeError: unsupported operand type(s) for &: 'str' and 'int'

data = self.host_behavior_data[:4] + cross_namespace_copy.to_bytes...
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TypeError: can only concatenate str (not "bytes") to str

This is to fix the errors below.

    if self.host_behavior_data[4] & cross_namespace_copy:
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for &: 'str' and 'int'

    data = self.host_behavior_data[:4] + cross_namespace_copy.to_bytes...
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "bytes") to str

Signed-off-by: Tokunori Ikegami <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant