[Pkg-mpd-commits] [python-mpd] 147/262: fix test for python3

Simon McVittie smcv at debian.org
Sun May 22 18:16:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch upstream
in repository python-mpd.

commit d22c9167bac3e081fa3546474af51f9bc4e37ab3
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date:   Wed Oct 31 13:13:15 2012 +0100

    fix test for python3
---
 test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test.py b/test.py
index 06ca0ff..fdcf3b1 100755
--- a/test.py
+++ b/test.py
@@ -211,7 +211,7 @@ class TestMPDClient(unittest.TestCase):
         client = mpd.MPDClient()
         client.connect(TEST_MPD_HOST, TEST_MPD_PORT)
         # simulate a disconnect
-        client._sock.send("close\n")
+        client._sock.send(b"close\n")
         client._sock.recv(4096)
         with self.assertRaises(mpd.ConnectionError):
             client.status()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git



More information about the Pkg-mpd-commits mailing list