Commit Graph

8 Commits

Author SHA1 Message Date
Nick Steel
5b32f87364 test: flake8 to ignore camelcase usage in our deps.
Ignore N813 when importing the c version of xml.etree.ElementTree.

Ignore N815 when controlling failure diff length in unittest.
2019-01-31 20:22:10 +00:00
Jarryd Tilbrook
b4c98ec4a5 Fix/1531 add unix domain socket (#1629)
mpd: add functionality for unix domain socket (Fixes #1531)

The Hostname config type now supports a Unix socket path prefixed with `unix:`
2018-02-13 12:58:39 +00:00
Stein Magnus Jodal
8820a88e0c file: Fix crash when media_dirs contains non-ASCII chars
Fixes #1345
2016-03-26 11:30:35 +01:00
Stein Magnus Jodal
3f7fbf67f3 Fix remaining gi.repository imports 2016-02-07 12:45:12 +01:00
Stein Magnus Jodal
8c82f4773f gst1: Update imports to use PyGI 2016-01-31 21:07:14 +01:00
Stein Magnus Jodal
b29d5df9b8 compat: Avoid non-ASCII in byte literals 2015-10-29 22:57:06 +01:00
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
Stein Magnus Jodal
d8bcd7f273 Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +02:00