Project

General

Profile

Actions

Bug #2821

closed

osmotestvty.py fails when run with python3

Added by msuraev over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
01/08/2018
Due date:
% Done:

100%

Spec Reference:

Description

======================================================================
ERROR: test_unknown_command (main.TestVTY)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/max/source/gsm/osmo-python-tests/scripts/osmotestvty.py", line 62, in test_unknown_command
assert(self.vty.verify(test_str, ['% Unknown command.']))
File "/home/max/source/gsm/osmo-python-tests/osmopy/obscvty.py", line 245, in verify
res = self.command(command, close).split('\r\n')
File "/home/max/source/gsm/osmo-python-tests/osmopy/obscvty.py", line 223, in command
return self._common_command(request, close)
File "/home/max/source/gsm/osmo-python-tests/osmopy/obscvty.py", line 179, in _common_command
self.socket.send("%s\r" % request)
TypeError: a bytes-like object is required, not 'str'

The error is observed with osmo-msc, osmo-bts etc.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)