aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-06-01 15:39:54 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-06-08 10:18:12 +0200
commit6497e52035509a2669720b03bd166a50a834c784 (patch)
treec2e6ed1659227dba32800b64d7a2a50a17bf6876 /run_unittests.py
parenta87e32d1817ba750b054774e589b595135fb9145 (diff)
downloadmeson-6497e52035509a2669720b03bd166a50a834c784.zip
meson-6497e52035509a2669720b03bd166a50a834c784.tar.gz
meson-6497e52035509a2669720b03bd166a50a834c784.tar.bz2
run_unittests.sh: fix Python DeprecationWarning
Fix the following Python error: D:\a\1\s\run_unittests.py:6654: DeprecationWarning: invalid escape sequence \ self.assertEqual(libhello_nolib.get_pkgconfig_variable(escaped_var, {}), hello world) Use a raw string literal.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 1c6d491..87091ba 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -6651,7 +6651,7 @@ class LinuxlikeTests(BasePlatformTests):
self.assertEqual(libhello_nolib.get_compile_args(), [])
self.assertEqual(libhello_nolib.get_pkgconfig_variable('foo', {}), 'bar')
self.assertEqual(libhello_nolib.get_pkgconfig_variable('prefix', {}), self.prefix)
- self.assertEqual(libhello_nolib.get_pkgconfig_variable('escaped_var', {}), 'hello\ world')
+ self.assertEqual(libhello_nolib.get_pkgconfig_variable('escaped_var', {}), r'hello\ world')
self.assertEqual(libhello_nolib.get_pkgconfig_variable('unescaped_var', {}), 'hello world')
cc = env.detect_c_compiler(MachineChoice.HOST)