We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e13266 commit 124d9ccCopy full SHA for 124d9cc
testing/test_junitxml.py
@@ -236,8 +236,9 @@ def test_pass():
236
start_time = datetime.now(timezone.utc)
237
result, dom = run_and_parse(family=xunit_family)
238
node = dom.get_first_by_tag("testsuite")
239
- timestamp = datetime.strptime(node["timestamp"], "%Y-%m-%dT%H:%M:%S.%f")
240
- assert start_time <= timestamp < datetime.now()
+ print(node["timestamp"])
+ timestamp = datetime.fromisoformat(node["timestamp"])
241
+ assert start_time <= timestamp < datetime.now(timezone.utc)
242
243
def test_timing_function(
244
self,
0 commit comments