[Python-modules-commits] [python-statsd] 01/02: debian/patches/808056.patch: fix assert_called_once() calls, thanks Gilles Dubuc (Closes: #808056)
Filippo Giunchedi
filippo at moszumanska.debian.org
Mon May 23 12:19:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
filippo pushed a commit to branch master
in repository python-statsd.
commit 7fe3abf072e2c6ddf24b0ffed92bde5ccfd7abf1
Author: Filippo Giunchedi <filippo at debian.org>
Date: Mon May 23 12:44:52 2016 +0100
debian/patches/808056.patch: fix assert_called_once() calls, thanks Gilles Dubuc (Closes: #808056)
---
debian/changelog | 2 ++
debian/patches/808056.patch | 23 +++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 26 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 5d2ffe7..4c366da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ python-statsd (3.2.1-2) UNRELEASED; urgency=medium
[ Filippo Giunchedi ]
* debian/control: fix Description for python-statsd (Closes: #810547)
+ * debian/patches/808056.patch:
+ fix assert_called_once() calls, thanks Gilles Dubuc (Closes: #808056)
-- Ondřej Nový <novy at ondrej.org> Tue, 29 Mar 2016 22:24:18 +0200
diff --git a/debian/patches/808056.patch b/debian/patches/808056.patch
new file mode 100644
index 0000000..5810d20
--- /dev/null
+++ b/debian/patches/808056.patch
@@ -0,0 +1,23 @@
+From: Gilles Dubuc <gilles at wikimedia.org>
+Subject: fix assert_called_once() calls
+
+Origin: upstream, https://github.com/jsocol/pystatsd/commit/f980e017191ce1ebc9f49c5c362ee7a57b46e6fd
+Bug-Debian: http://bugs.debian.org/808056
+--- a/statsd/tests.py
++++ b/statsd/tests.py
+@@ -942,7 +942,7 @@
+ addr = ('127.0.0.1', 1234)
+ cl = _tcp_client(addr=addr[0], port=addr[1])
+ cl.incr('foo')
+- cl._sock.sendall.assert_called_once()
++ eq_(1, cl._sock.sendall.call_count)
+ cl._sock.sendall.side_effect = socket.error
+ with assert_raises(socket.error):
+ cl.incr('foo')
+@@ -954,5 +954,4 @@
+ test_timeout = 321
+ cl = TCPStatsClient(timeout=test_timeout)
+ cl.incr('foo')
+- cl._sock.settimeout.assert_called_once()
+- cl._sock.settimeout.assert_called_with(test_timeout)
++ cl._sock.settimeout.assert_called_once_with(test_timeout)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e2645c3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+808056.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-statsd.git
More information about the Python-modules-commits
mailing list