mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Merge forbidden panic check into test-tidy
This cleans up the GitHub actions yaml a bit and ensures that developers are running this check locally before submitting changes. In addition, it allows adding tests for this check. Finally, this change fixes the tidy tests by upgrading voluptuous for Python 3.10 as well as by reverting an inadvertent change for NixOS compatibility on one of the dummy testing files.
This commit is contained in:
parent
259ccff491
commit
ec9cbeefd8
8 changed files with 26 additions and 40 deletions
|
@ -115,6 +115,8 @@ class CheckTidiness(unittest.TestCase):
|
|||
self.assertEqual('use &T instead of &DomRoot<T>', next(errors)[2])
|
||||
self.assertEqual('encountered function signature with -> ()', next(errors)[2])
|
||||
self.assertEqual('operators should go at the end of the first line', next(errors)[2])
|
||||
self.assertEqual('unwrap() or panic!() found in code which should not panic.', next(errors)[2])
|
||||
self.assertEqual('unwrap() or panic!() found in code which should not panic.', next(errors)[2])
|
||||
self.assertNoMoreErrors(errors)
|
||||
|
||||
feature_errors = tidy.collect_errors_for_files(iterFile('lib.rs'), [], [tidy.check_rust], print_text=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue