We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb0f4a commit aeae735Copy full SHA for aeae735
tests/searchcommands/test_validators.py
@@ -67,10 +67,10 @@ def test_duration(self):
67
value = six.text_type(seconds)
68
self.assertEqual(validator(value), seconds)
69
self.assertEqual(validator(validator.format(seconds)), seconds)
70
- value = f'{seconds/60}:{seconds%60:02} '
+ value = '%d:%02d' % (seconds / 60, seconds % 60)
71
72
73
- value = f'{seconds/3600}:{(seconds/60)%60:02}:{seconds%60}'
+ value = '%d:%02d:%02d' % (seconds / 3600, (seconds / 60) % 60, seconds % 60)
74
75
76
0 commit comments