-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix test warnings #543
fix test warnings #543
Conversation
# Render matplotlib plots non-blocking | ||
plt.ion() | ||
|
||
def tearDown(self): | ||
plt.close("all") | ||
plt.ioff() | ||
if Path.exists(Path("TEST_IMAGE")): | ||
Path.unlink(Path(TEST_IMAGE)) | ||
Path.unlink(Path(TEST_IMAGE), True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to this PR but should the line above be Path.exists(Path(TEST_IMAGE))
(instead of the string "TEST_IMAGE"
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
nixio/util/util.py
Outdated
@@ -97,7 +97,8 @@ def time_to_str(time): | |||
:return: string in the form "YYYYMMDDTHHMMSS", where T is the date-time separator | |||
:rtype: str | |||
""" | |||
dt = datetime.utcfromtimestamp(time) | |||
# dt = datetime.utcfromtimestamp(time) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to keep the old line around as a comment? I think we can just delete it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a long time ago, it must have made sense ;) removed with the updated version
Thanks, @achilleas-k ! |
This PR fixes
datetime
deprecation warnings.numpy
versions > 2.0