[Pkg-mpd-commits] [python-mpd] 19/91: Minor test fixes
Simon McVittie
smcv at debian.org
Sat Feb 24 14:55:28 UTC 2018
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository python-mpd.
commit 4831ac7c08b9bb68caee692bb95be61b4626607c
Author: Robert Niederreiter <office at squarewave.at>
Date: Mon Sep 12 11:50:11 2016 +0200
Minor test fixes
---
mpd/tests.py | 5 +++--
setup.py | 8 ++++++--
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/mpd/tests.py b/mpd/tests.py
index 029d7d4..b1da61e 100755
--- a/mpd/tests.py
+++ b/mpd/tests.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+from __future__ import absolute_import
from twisted.python.failure import Failure
import itertools
import mpd
@@ -725,7 +726,7 @@ class TestMPDProtocol(unittest.TestCase):
],
self.protocol.transport.written
)
- self.protocol.transport.written.clear()
+ self.protocol.transport.clear()
self.protocol.lineReceived(b'list_OK')
self.protocol.lineReceived(b'list_OK')
self.protocol.lineReceived(b'OK')
@@ -792,7 +793,7 @@ class TestMPDProtocol(unittest.TestCase):
],
self.protocol.transport.written
)
- self.protocol.transport.written.clear()
+ self.protocol.transport.clear()
self.protocol.lineReceived(b'OK')
self.protocol.lineReceived(b'list_OK')
self.protocol.lineReceived(b'list_OK')
diff --git a/setup.py b/setup.py
index 9aba21a..09f1175 100644
--- a/setup.py
+++ b/setup.py
@@ -82,8 +82,12 @@ setup(
'mock',
'Twisted'
],
- cmdclass={'test': Tox},
- extras_require={'twisted': ["twisted"]}
+ cmdclass={
+ 'test': Tox
+ },
+ extras_require={
+ 'twisted': ['Twisted']
+ }
)
# vim: set expandtab shiftwidth=4 softtabstop=4 textwidth=79:
--
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