diff options
author | Xeonacid <h.dwwwwww@gmail.com> | 2022-11-16 23:07:01 +0800 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-11-16 13:16:47 -0500 |
commit | 47d1a55e780f928c9c1613220d6267de530e64b4 (patch) | |
tree | 338305bac114b3d245f517173b3c15c4a1ef3fd0 /unittests | |
parent | 82326658493447660beeb196abcf7594d3b6f8b5 (diff) | |
download | meson-47d1a55e780f928c9c1613220d6267de530e64b4.zip meson-47d1a55e780f928c9c1613220d6267de530e64b4.tar.gz meson-47d1a55e780f928c9c1613220d6267de530e64b4.tar.bz2 |
Fix test_rust_clippy for rust 1.65
clippy changed output message
fix #11004
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/allplatformstests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 1ecbf18..6eced8e 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -4352,7 +4352,8 @@ class AllPlatformTests(BasePlatformTests): self.init(testdir, extra_args=['--werror'], override_envvars={'RUSTC': 'clippy-driver'}) with self.assertRaises(subprocess.CalledProcessError) as cm: self.build() - self.assertIn('error: use of a blacklisted/placeholder name `foo`', cm.exception.stdout) + self.assertTrue('error: use of a blacklisted/placeholder name `foo`' in cm.exception.stdout or + 'error: use of a disallowed/placeholder name `foo`' in cm.exception.stdout) @skip_if_not_language('rust') def test_rust_rlib_linkage(self) -> None: |