Skip to content

Commit

Permalink
fixup! Ignore DeprecationWarning from datetime, add FIXME (#5953)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsotirho-ucsc committed Nov 20, 2024
1 parent 03baa9c commit bf8e1bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/sell_unused_slots.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def _list_contribution_lambda_functions(cls) -> list[Lambda]:
def _lambda_invocation_counts(self) -> dict[Lambda, int]:
# FIXME: DeprecationWarning for datetime methods in Python 3.12
# https://github.com/DataBiosphere/azul/issues/5953
#
end = datetime.utcnow()
start = end - timedelta(minutes=self.interval)
lambdas_by_name = {
Expand Down
1 change: 1 addition & 0 deletions src/azul/dss.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
def new_version():
# FIXME: DeprecationWarning for datetime methods in Python 3.12
# https://github.com/DataBiosphere/azul/issues/5953
#
return datetime.utcnow().strftime(version_format)


Expand Down
1 change: 1 addition & 0 deletions test/azul_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class RE(str):

# FIXME: DeprecationWarning for datetime methods in Python 3.12
# https://github.com/DataBiosphere/azul/issues/5953
#
'datetime.datetime.utcnow() is deprecated',
'datetime.datetime.utcfromtimestamp() is deprecated'
},
Expand Down
1 change: 1 addition & 0 deletions test/service/test_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,7 @@ def test_bdbag_manifest_remove_redundant_entries(self):
"""
# FIXME: DeprecationWarning for datetime methods in Python 3.12
# https://github.com/DataBiosphere/azul/issues/5953
#
now = datetime.utcnow()

def v(i):
Expand Down

0 comments on commit bf8e1bd

Please sign in to comment.