Skip to content

Commit

Permalink
Support Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Jan 29, 2024
1 parent a2ceb7f commit 5a40ec8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/323.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix some deprecation warnings for Python 3.12 support.
2 changes: 1 addition & 1 deletion dkist/net/globus/tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ def test_func():
return True

assert test_func()
assert reauth.called_once_with(force_reauth=True)
reauth.assert_called_once_with(force_reauth=True)
2 changes: 1 addition & 1 deletion dkist/net/tests/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def aunit(draw, number=st.floats(allow_nan=False, allow_infinity=False, min_valu

@st.composite
def _embargo_end(draw, time=Times(
max_value=datetime.datetime(datetime.datetime.utcnow().year, 1, 1, 0, 0),
max_value=datetime.datetime(datetime.datetime.now(datetime.UTC).year, 1, 1, 0, 0),
min_value=datetime.datetime(1981, 1, 1, 0, 0)),
delta=TimeDelta()):
t1 = draw(time)
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ filterwarnings =
ignore:Converter handles multiple tags for this extension:asdf.exceptions.AsdfWarning
# https://github.com/pandas-dev/pandas/issues/54466
ignore:\nPyarrow will become a required dependency of pandas in the next major release of pandas:DeprecationWarning
# This seems to be coming out of pandas
ignore:datetime.datetime.utcfromtimestamp.*:DeprecationWarning

[flake8]
exclude = extern,sphinx,*parsetab.py,conftest.py,docs/conf.py,setup.py,__init__.py
max-line-length = 100
Expand Down

0 comments on commit 5a40ec8

Please sign in to comment.