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 22, 2024
1 parent b815a1b commit 21f030c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion scripts/sell_unused_slots.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ 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: 0 additions & 1 deletion src/azul/dss.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
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: 0 additions & 1 deletion test/azul_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ 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: 0 additions & 1 deletion test/service/test_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,6 @@ 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 21f030c

Please sign in to comment.