Skip to content

Clean up deprecation warnings#774

Open
pabs3 wants to merge 1 commit into
projecthamster:masterfrom
pabs3:cleanup
Open

Clean up deprecation warnings#774
pabs3 wants to merge 1 commit into
projecthamster:masterfrom
pabs3:cleanup

Conversation

@pabs3

@pabs3 pabs3 commented Mar 21, 2025

Copy link
Copy Markdown
  • Fix deprecation warning

@pabs3 pabs3 changed the title Clean up syntax and deprecation warnings Clean up deprecation warnings Mar 21, 2025
@jwilk

jwilk commented Apr 5, 2025

Copy link
Copy Markdown

https://github.com/projecthamster/hamster/pull/774/checks failed:

ERROR: test_round_trip (tests.test_stuff.TestDBus)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/hamster/hamster/tests/test_stuff.py", line 506, in test_round_trip
    return_fact = from_dbus_fact(dbus_fact)
  File "/home/runner/work/hamster/hamster/src/hamster/lib/dbus.py", line 98, in from_dbus_fact
    start_time=dt.datetime.fromtimestamp(dbus_fact[1], dt.UTC),
AttributeError: module 'hamster.lib.datetime' has no attribute 'UTC'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants