Hack to fix random test failure
With Pykka 0.16, test_status_method_when_playing_contains_time_with_length fails now and then because play_time_started is not initialized before it is used as an int. I'm allowing myself to fix this in the simplest way possible instead of tracking the issue down, since I'm already working on a refactor of the time position code.
This commit is contained in:
parent
52c7726de2
commit
36698d1ae6
@ -88,7 +88,7 @@ class PlaybackController(object):
|
||||
self._shuffled = []
|
||||
self._first_shuffle = True
|
||||
self.play_time_accumulated = 0
|
||||
self.play_time_started = None
|
||||
self.play_time_started = 0
|
||||
|
||||
def _get_cpid(self, cp_track):
|
||||
if cp_track is None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user