]> git.puffer.fish Git - mirror/frr.git/commit
tests: Fix DeprecationWarning in SRv6 L3VPN topotest 14473/head
authorCarmine Scarpitta <cscarpit@cisco.com>
Fri, 22 Sep 2023 16:43:33 +0000 (18:43 +0200)
committerCarmine Scarpitta <cscarpit@cisco.com>
Fri, 22 Sep 2023 16:43:42 +0000 (18:43 +0200)
commit71ed1868d65e24c250c3ee4b92e28c2d7cdc833e
tree18340b4ac4c2f2f5b743b5c8e4163b23d2c83f2e
parenteceb1cab6d130e599d761fad2fda6a3faed51f59
tests: Fix DeprecationWarning in SRv6 L3VPN topotest

Fix the following warning:

tests/topotests/bgp_srv6l3vpn_sid/test_bgp_srv6l3vpn_sid.py:42
  /media/SharedUTM/workspace/frr/tests/topotests/bgp_srv6l3vpn_sid/test_bgp_srv6l3vpn_sid.py:42: DeprecationWarning: invalid escape sequence '\ '

In test_bgp_srv6l3vpn_sid.py we have a comment containing some '\'
characters. Python mistakenly tries to interpret such "\" characters
as escape sequences, which leads to the above warning.

Let's tell Python to treat the comment as a raw string,
so that it simply treats backslashes as literal characters rather than
escape sequences.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
tests/topotests/bgp_srv6l3vpn_sid/test_bgp_srv6l3vpn_sid.py