Skip to content
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

Test mt940.models.FixedOffset fails on Python 3.7 #64

Closed
dotlambda opened this issue Dec 19, 2018 · 1 comment
Closed

Test mt940.models.FixedOffset fails on Python 3.7 #64

dotlambda opened this issue Dec 19, 2018 · 1 comment

Comments

@dotlambda
Copy link
Contributor

______________________ [doctest] mt940.models.FixedOffset ______________________
017 Fixed time offset based on the Python docs
018     Source: https://docs.python.org/2/library/datetime.html#tzinfo-objects
019
020     >>> offset = FixedOffset(60)
021     >>> offset.utcoffset(None)
Expected:
    datetime.timedelta(0, 3600)
Got:
    datetime.timedelta(seconds=3600)

/build/source/mt940/models.py:21: DocTestFailure
@wolph
Copy link
Owner

wolph commented Dec 20, 2018

Yes, it seems that Python 3 has changed the repr() for a timedelta. It's an improvement, but inconvenient for doctests :P

@wolph wolph closed this as completed in 680cb55 Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants