Skip to content

Commit

Permalink
* **Fix:** Fixed a test that was testing overloaded operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
eoyilmaz committed Jun 15, 2017
1 parent 94b913d commit 1d9fae6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tests/test_timecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,14 @@ def test_op_overloads_mult(self):

tc = Timecode('23.98', '03:36:09:23')
tc2 = Timecode('23.98', '00:00:29:23')
self.assertEqual(720, tc2.frames)
self.assertEqual(tc.frames, 311280)
self.assertEqual(tc2.frames, 720)
d = tc * tc2
f = tc * 720
self.assertEqual("04:09:35:23", d.__str__())
self.assertEqual(224121600, d.frames)
self.assertEqual("04:09:35:23", f.__str__())
self.assertEqual("01:59:59:23", d.__str__())
self.assertEqual(224121600, f.frames)
self.assertEqual("01:59:59:23", f.__str__())

tc = Timecode('ms', '03:36:09.230')
tc2 = Timecode('ms', '01:06:09.230')
Expand Down
2 changes: 1 addition & 1 deletion timecode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# THE SOFTWARE.


__version__ = '0.4.0'
__version__ = '0.4.1'


class Timecode(object):
Expand Down

0 comments on commit 1d9fae6

Please sign in to comment.