1 |
jlec 14/07/07 06:52:44 |
2 |
|
3 |
Added: bokeh-0.4.4-fix_test_object.patch |
4 |
Log: |
5 |
dev-python/bokeh: Importing Version BUmp from sci overlay, thanks olifre; #516052 |
6 |
|
7 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/bokeh/files/bokeh-0.4.4-fix_test_object.patch |
11 |
|
12 |
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 |
13 |
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 |
14 |
|
15 |
Index: bokeh-0.4.4-fix_test_object.patch |
16 |
=================================================================== |
17 |
commit 9606ae037dbd9ee888f9763a1bd9c6d7fc3b5824 |
18 |
Author: Bryan Van de Ven <bryanv@×××××××××.io> |
19 |
Date: Sat Apr 19 10:05:35 2014 -0500 |
20 |
|
21 |
fix #548 |
22 |
|
23 |
diff --git a/bokeh/plotobject.py b/bokeh/plotobject.py |
24 |
index 7485d27..92ae2dd 100644 |
25 |
--- a/bokeh/plotobject.py |
26 |
+++ b/bokeh/plotobject.py |
27 |
@@ -220,7 +220,7 @@ class PlotObject(HasProps): |
28 |
|
29 |
def references(self): |
30 |
"""Returns all ``PlotObjects`` that this object has references to. """ |
31 |
- return self.collect_plot_objects(self) |
32 |
+ return set(self.collect_plot_objects(self)) |
33 |
|
34 |
#--------------------------------------------------------------------- |
35 |
# View Model connection methods |
36 |
diff --git a/bokeh/tests/test_objects.py b/bokeh/tests/test_objects.py |
37 |
index 1a17f69..75d5678 100644 |
38 |
--- a/bokeh/tests/test_objects.py |
39 |
+++ b/bokeh/tests/test_objects.py |
40 |
@@ -242,7 +242,7 @@ class TestPlotObject(unittest.TestCase): |
41 |
x2 = X2(y=y, z2=z2) |
42 |
|
43 |
# TODO: self.assertEqual(x1.references(), [t1, y, t2, x1]) |
44 |
- self.assertEqual(x2.references(), [t1, y, t2, z2, x2]) |
45 |
+ self.assertEqual(x2.references(), set([t1, y, t2, z2, x2])) |
46 |
|
47 |
if __name__ == "__main__": |
48 |
unittest.main() |