Skip to content

Commit

Permalink
Merge 9ab7401 into 39902d7
Browse files Browse the repository at this point in the history
  • Loading branch information
kersommoura committed Apr 15, 2019
2 parents 39902d7 + 9ab7401 commit 4afe187
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pulp_smash/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,17 @@ def bug_is_fixed(bug_id, pulp_version):
warnings.warn(message, RuntimeWarning)
return True

if isinstance(pulp_version, str):
pulp_version = Version(pulp_version)

if not isinstance(pulp_version, Version):
raise TypeError(
"Pulp version should be an instance of Version. The given"
" Pulp version, {} is a {}.".format(
pulp_version, type(pulp_version)
)
)

# bug.target_platform_release has already been verified by Version().
if bug.status not in _TESTABLE_BUGS | _UNTESTABLE_BUGS:
raise exceptions.BugStatusUnknownError(
Expand Down

0 comments on commit 4afe187

Please sign in to comment.