From 36c1e66dc1989d9b70dd0169497fdc2ea5ca9ffd Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sat, 18 Apr 2020 12:48:51 -0700 Subject: [PATCH] Convert regex string to raw. Signed-off-by: Dan Schaper --- test/test_bash_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_bash_functions.py b/test/test_bash_functions.py index 54b3ce5..60ad14c 100644 --- a/test/test_bash_functions.py +++ b/test/test_bash_functions.py @@ -29,7 +29,7 @@ def test_IPv6_not_True_removes_ipv6(Docker, Slow, test_args, expected_ipv6, expe @pytest.mark.parametrize('test_args', ['-e "WEB_PORT=999"']) def test_overrides_default_WEB_PORT(Docker, Slow, test_args): ''' When a --net=host user sets WEB_PORT to avoid synology's 80 default IPv4 and or IPv6 ports are updated''' - CONFIG_LINE = 'server.port\s*=\s*999' + CONFIG_LINE = r'server.port\s*=\s*999' WEB_CONFIG = '/etc/lighttpd/lighttpd.conf' function = Docker.run('. /bash_functions.sh ; eval `grep setup_web_port /start.sh`')