Skip to content

Commit

Permalink
tests: sort tests and increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Apr 30, 2023
1 parent 1ff92e4 commit 9a5defe
Show file tree
Hide file tree
Showing 2 changed files with 272 additions and 101 deletions.
4 changes: 3 additions & 1 deletion src/poetry/core/version/pep440/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ def without_local(self: T) -> T:
return self.replace(local=None)

def without_postrelease(self: T) -> T:
return self.replace(post=None, dev=None)
if self.is_postrelease():
return self.replace(post=None, dev=None)
return self

def without_devrelease(self: T) -> T:
return self.replace(dev=None)
Loading

0 comments on commit 9a5defe

Please sign in to comment.