Skip to content

Commit

Permalink
[REF] test: Add jobs=2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
moylop260 committed Dec 18, 2024
1 parent dca80bc commit 58929c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,13 @@ def test_175_prohibited_method_override(self):
}
self.assertDictEqual(real_errors, expected_errors)

def test_180_jobs(self):
"""Using jobs could raise new errors"""
self.default_extra_params += ["--jobs=2"]
pylint_res = self.run_pylint(self.paths_modules, verbose=True)
real_errors = pylint_res.linter.stats.by_msg
self.assertEqual(self.expected_errors, real_errors)

@staticmethod
def re_replace(sub_start, sub_end, substitution, content):
re_sub = re.compile(rf"^{re.escape(sub_start)}$.*^{re.escape(sub_end)}$", re.M | re.S)
Expand Down

0 comments on commit 58929c1

Please sign in to comment.