File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 88
99from pontos .version ._errors import VersionError
1010from pontos .version .schemes ._pep440 import PEP440Version
11- from pontos .version .schemes ._semantic import SemanticVersion , SemanticVersion as Version
11+ from pontos .version .schemes ._semantic import (
12+ SemanticVersion ,
13+ SemanticVersion as Version ,
14+ )
1215from pontos .version .schemes ._semantic import (
1316 SemanticVersionCalculator as VersionCalculator ,
1417)
@@ -1026,9 +1029,15 @@ def test_next_dev_version(self):
10261029 f"{ release_version } is not the expected next development "
10271030 f"version { assert_version } for { current_version } " ,
10281031 )
1029-
1032+
10301033 def test_hash (self ):
1031- self .assertEqual (hash (SemanticVersion ("22.2.2" )), hash (SemanticVersion ("22.2.2" )))
1032- self .assertNotEqual (hash (SemanticVersion ("22.2.1" )), hash (SemanticVersion ("22.2.2" )))
1034+ self .assertEqual (
1035+ hash (SemanticVersion ("22.2.2" )), hash (SemanticVersion ("22.2.2" ))
1036+ )
1037+ self .assertNotEqual (
1038+ hash (SemanticVersion ("22.2.1" )), hash (SemanticVersion ("22.2.2" ))
1039+ )
10331040 self .assertNotEqual (hash (SemanticVersion ("22.2.2" )), hash ("22.2.2" ))
1034- self .assertNotEqual (hash (SemanticVersion ("22.2.1" )), hash (SemanticVersion ("22.2.2" )))
1041+ self .assertNotEqual (
1042+ hash (SemanticVersion ("22.2.1" )), hash (SemanticVersion ("22.2.2" ))
1043+ )
You can’t perform that action at this time.
0 commit comments