mopidy/tests/internal
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
..
network Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00
__init__.py Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00
test_deps.py Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00
test_encoding.py Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00
test_jsonrpc.py Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00
test_path.py tests: fix test breakage due to promotion from int to long 2015-08-05 22:38:21 +02:00
test_playlists.py playlists: Add urilist fallback parser 2015-07-25 23:19:59 +02:00
test_validation.py Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00
test_xdg.py Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00