mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-20 11:32:07 +08:00
black fixes and Travis CI fixes (#2160)
* black format * updating DIRECTORY.md * fixes * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -35,9 +35,7 @@ class TestClass(unittest.TestCase):
|
||||
# profit = [10, -20, 30, 40, 50, 60]
|
||||
# weight = [2, 4, 6, 8, 10, 12]
|
||||
# max_weight = 15
|
||||
self.assertRaisesRegex(
|
||||
ValueError, "Weight can not be negative.",
|
||||
)
|
||||
self.assertRaisesRegex(ValueError, "Weight can not be negative.")
|
||||
|
||||
def test_negative_weight_value(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user