Skip to content

Commit

Permalink
Fix brackets for is_earlier_or_prerelease call
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoldeman committed Mar 6, 2024
1 parent 03c0b3d commit 303f453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/framework/utilities_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def test_LooseVersion(self):
self.assertLess(LooseVersion('1'), LooseVersion('1.0'))
# checking prereleases
self.assertGreater(LooseVersion('4.0.0-beta'), LooseVersion('4.0.0'))
self.assertEqual(LooseVersion('4.0.0-beta').is_earlier_or_prerelease('4.0.0'), ['-beta'], True)
self.assertEqual(LooseVersion('4.0.0-beta').is_earlier_or_prerelease('4.0.0'), ['rc'], False)
self.assertEqual(LooseVersion('4.0.0-beta').is_earlier_or_prerelease('4.0.0', ['-beta']), True)
self.assertEqual(LooseVersion('4.0.0-beta').is_earlier_or_prerelease('4.0.0', ['rc']), False)

# The following test is taken from Python distutils tests
# licensed under the Python Software Foundation License Version 2
Expand Down

0 comments on commit 303f453

Please sign in to comment.