[New-bugs-announce] [issue35004] Odd behavior when using datetime.timedelta under cProfile

Beau Gunderson report at bugs.python.org
Tue Oct 16 18:31:03 EDT 2018


New submission from Beau Gunderson <beau at beaugunderson.com>:

In chasing down a bug in my code that only manifests itself when running under cProfile I managed to find the culprit in datetime.timedelta by way of dateutil.

Here is a small repro:

https://gist.github.com/beaugunderson/68ea6424a4fdcf763ccad08e42a74974

I believe an exception should still be raised in broken() when run under cProfile, but for some reason it is not.

----------
messages: 327846
nosy: beaugunderson
priority: normal
severity: normal
status: open
title: Odd behavior when using datetime.timedelta under cProfile
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35004>
_______________________________________


More information about the New-bugs-announce mailing list