Skip to content

Commit

Permalink
Apprently the deprecation alternative is not correct?
Browse files Browse the repository at this point in the history
  • Loading branch information
another-rex committed Aug 29, 2024
1 parent 9cf9be1 commit f63cff4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osv/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def _check_valid_event_type(prop, value):

def utcnow():
"""For mocking."""
return datetime.now(UTC)
# The alternative mentioned in the deprecation notice
# does not behave in the same way? Tests fail.
return datetime.utcnow()


def _get_purl_indexes(affected_packages):
Expand Down

0 comments on commit f63cff4

Please sign in to comment.