Fix test_rust_clippy for rust 1.65

clippy changed output message
fix #11004
pull/10979/head
Xeonacid 2 years ago committed by Eli Schwartz
parent 8232665849
commit 47d1a55e78
  1. 3
      unittests/allplatformstests.py

@ -4352,7 +4352,8 @@ class AllPlatformTests(BasePlatformTests):
self.init(testdir, extra_args=['--werror'], override_envvars={'RUSTC': 'clippy-driver'}) self.init(testdir, extra_args=['--werror'], override_envvars={'RUSTC': 'clippy-driver'})
with self.assertRaises(subprocess.CalledProcessError) as cm: with self.assertRaises(subprocess.CalledProcessError) as cm:
self.build() 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') @skip_if_not_language('rust')
def test_rust_rlib_linkage(self) -> None: def test_rust_rlib_linkage(self) -> None:

Loading…
Cancel
Save