TypeError while running bzr selftest --subunit | subunit2junitxml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjunitxml |
Fix Released
|
High
|
John A Meinel |
Bug Description
ubuntu@
/home/ubuntu/
warnings.warn("%r was gc'd while locked" % self.repr)
/home/ubuntu/
warn("lock on %r not released" % self.f)
Traceback (most recent call last):
File "/usr/bin/
result.
File "/usr/lib/
duration = self._duration(
File "/usr/lib/
delta = self._now() - from_datetime
TypeError: can't subtract offset-naive and offset-aware datetimes
Related branches
Changed in pyjunitxml: | |
status: | Triaged → Fix Released |
assignee: | nobody → John A Meinel (jameinel) |
milestone: | none → 0.5 |
subunit generates UTC aware timestamps, and junitxml doesn't grok that because the types are (IMO wrongly) incompatible.
I think this is a significant and imprtant bug to fix, but I want to get another subunit release done so it may be a little bit before I get to this.
I think a reasonable way to fix this would be to:
- get utc aware timestamps from utcnow
and leave it at that for now.