Skip to content

Commit

Permalink
Fix test_rust_clippy for rust 1.65
Browse files Browse the repository at this point in the history
clippy changed output message
fix #11004
  • Loading branch information
Xeonacid authored and eli-schwartz committed Nov 16, 2022
1 parent 8232665 commit 47d1a55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unittests/allplatformstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4352,7 +4352,8 @@ def test_rust_clippy(self) -> None:
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:
Expand Down

0 comments on commit 47d1a55

Please sign in to comment.