From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 613A913877A for ; Mon, 7 Jul 2014 06:52:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F19EE082F; Mon, 7 Jul 2014 06:52:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5BA04E082F for ; Mon, 7 Jul 2014 06:52:46 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 502703400AA for ; Mon, 7 Jul 2014 06:52:45 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2264) id 17FAE2004F; Mon, 7 Jul 2014 06:52:44 +0000 (UTC) From: "Justin Lecher (jlec)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, jlec@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-python/bokeh/files: bokeh-0.4.4-fix_test_object.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: bokeh-0.4.4-fix_test_object.patch X-VCS-Directories: dev-python/bokeh/files X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20140707065244.17FAE2004F@flycatcher.gentoo.org> Date: Mon, 7 Jul 2014 06:52:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a663c36d-2b2b-4f08-a386-60fab950a428 X-Archives-Hash: f575b13270adcdf32be9d0b852b44a2d jlec 14/07/07 06:52:44 Added: bokeh-0.4.4-fix_test_object.patch Log: dev-python/bokeh: Importing Version BUmp from sci overlay, thanks olifre; #516052 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) Revision Changes Path 1.1 dev-python/bokeh/files/bokeh-0.4.4-fix_test_object.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bokeh/files/bokeh-0.4.4-fix_test_object.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bokeh/files/bokeh-0.4.4-fix_test_object.patch?rev=1.1&content-type=text/plain Index: bokeh-0.4.4-fix_test_object.patch =================================================================== commit 9606ae037dbd9ee888f9763a1bd9c6d7fc3b5824 Author: Bryan Van de Ven Date: Sat Apr 19 10:05:35 2014 -0500 fix #548 diff --git a/bokeh/plotobject.py b/bokeh/plotobject.py index 7485d27..92ae2dd 100644 --- a/bokeh/plotobject.py +++ b/bokeh/plotobject.py @@ -220,7 +220,7 @@ class PlotObject(HasProps): def references(self): """Returns all ``PlotObjects`` that this object has references to. """ - return self.collect_plot_objects(self) + return set(self.collect_plot_objects(self)) #--------------------------------------------------------------------- # View Model connection methods diff --git a/bokeh/tests/test_objects.py b/bokeh/tests/test_objects.py index 1a17f69..75d5678 100644 --- a/bokeh/tests/test_objects.py +++ b/bokeh/tests/test_objects.py @@ -242,7 +242,7 @@ class TestPlotObject(unittest.TestCase): x2 = X2(y=y, z2=z2) # TODO: self.assertEqual(x1.references(), [t1, y, t2, x1]) - self.assertEqual(x2.references(), [t1, y, t2, z2, x2]) + self.assertEqual(x2.references(), set([t1, y, t2, z2, x2])) if __name__ == "__main__": unittest.main()