-
Notifications
You must be signed in to change notification settings - Fork 440
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
format_datetime: using 'S...S' format is incorrect #360
Conversation
Current coverage is
|
return self.format(round(float('.%s' % value), num) * 10**num, num) | ||
""" Return fractional seconds. | ||
|
||
Rounds the time's microseconds to the precision given by the number \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to use the backslash for line continuations in docstrings :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akx Ok. Got it 😄
@akx TravisCI is failing for pypy for Linux. Why so? |
@iamshubh22 Ah, nothing to worry about if I'm guessing right. I restarted that particular build now. To be exact, the problem is that occasionally (very seldom though) time manages to roll over a second during a test, so when a test expects a file to say EDIT: Yep, it was one of those bugs. :D |
Current coverage is
|
This looks good! Thank you for the patch, @iamshubh22! 🏆 |
format_datetime: using 'S...S' format is incorrect
@akx Just one doubt. What does the Code coverage tells?? |
|
Fixes #350