Browse Source

TT#14008 fix websockets test for older python3

Don't use f'' strings and use .group() instead of [] for RE substring
matches.

Closes #1433

Change-Id: I464c6eb063702c90c2308598927e7db8358703d1
pull/1439/head
Richard Fuchs 4 years ago
parent
commit
54ee927773
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      t/auto-daemon-tests-websocket.py

+ 2
- 2
t/auto-daemon-tests-websocket.py View File

@ -942,7 +942,7 @@ class TestVideoroom(unittest.TestCase):
)
self.assertRegex(sdp, match_re)
matches = match_re.search(sdp)
port = int(matches[1])
port = int(matches.group(1))
self.assertEqual(
self._res,
{
@ -2071,5 +2071,5 @@ if __name__ == "__main__":
os.unlink(so.name)
os.unlink(se.name)
else:
print(f"HINT: Stdout and stderr are {so.name} and {se.name}")
print("HINT: Stdout and stderr are {} and {}".format(so.name, se.name))
sys.exit(code)

Loading…
Cancel
Save