Staging
v0.8.1
Revision 89427cd0feae25bbc8693abdccfa6a8c81a2689c authored by Paul Ganssle on 04 February 2019, 19:42:04 UTC, committed by Alexander Belopolsky on 04 February 2019, 19:42:04 UTC
* Make timedelta return subclass types

Previously timedelta would always return the `date` and `datetime`
types, regardless of what it is added to. This makes it return
an object of the type it was added to.

* Add tests for timedelta arithmetic on subclasses

* Make pure python timedelta return subclass types

* Add test for fromtimestamp with tz argument

* Add tests for subclass behavior in now

* Add news entry.

Fixes:
bpo-32417
bpo-35364

* More descriptive variable names in tests

Addresses Victor's comments
1 parent ca7d293
History
File Mode Size
fixes
pgen2
tests
Grammar.txt -rw-r--r-- 6.4 KB
PatternGrammar.txt -rw-r--r-- 793 bytes
__init__.py -rw-r--r-- 7 bytes
__main__.py -rw-r--r-- 67 bytes
btm_matcher.py -rw-r--r-- 6.5 KB
btm_utils.py -rw-r--r-- 9.7 KB
fixer_base.py -rw-r--r-- 6.5 KB
fixer_util.py -rw-r--r-- 14.9 KB
main.py -rw-r--r-- 11.4 KB
patcomp.py -rw-r--r-- 6.9 KB
pygram.py -rw-r--r-- 1.1 KB
pytree.py -rw-r--r-- 27.3 KB
refactor.py -rw-r--r-- 26.8 KB

back to top