mopidy/tests/core
Bjørnar Snoksrud 1eb41aca7d tests: fix test breakage due to promotion from int to long
This fixes #1240.

In internals/path.py. there is a snippet of code that multiples mtime
for a file with 1000, and then casting it to `int`, to return the number
of milliseconds since epoch (or whatever). This will, however, not
ensure that the result is an `int`.

>>> type(int(2**32))
<type 'long'>

Instead, fix the tests to look for (int, long), and clarify the
implementation.

This bug found on a 32-bit VM :)
2015-08-05 22:38:21 +02:00
..
__init__.py py3: Use absolute imports by default 2014-12-07 20:17:10 +01:00
test_actor.py Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00
test_events.py Implemented playlist_deleted event 2015-07-26 11:57:17 +02:00
test_history.py tests: fix test breakage due to promotion from int to long 2015-08-05 22:38:21 +02:00
test_library.py Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00
test_listener.py Implemented playlist_deleted event 2015-07-26 11:57:17 +02:00
test_mixer.py core: Correct volume/mute return values 2015-05-07 00:13:58 +02:00
test_playback.py core: Update test mock 2015-07-25 14:47:00 +02:00
test_playlists.py Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00
test_tracklist.py Add core config values to relevent test cases. 2015-07-19 23:05:39 -04:00