Added unit test of python 3 repr
@@ -4,7 +4,7 @@ Test cases for the pretty printing system.
from holoviews.element.comparison import ComparisonTestCase
-from holoviews import Element
+from holoviews import Element, Curve
from holoviews.core.pprint import PrettyPrinter
@@ -23,3 +23,9 @@ class PrettyPrintTest(ComparisonTestCase):
o = self.element1 * self.element2
r = PrettyPrinter.pprint(o)
self.assertEqual(r, expected)
+
+ def test_curve_pprint_repr(self):
+ # Ensure it isn't a bytes object with the 'b' prefix
+ expected = "':Curve [x] (y)'"
+ r = PrettyPrinter.pprint(Curve([1,2,3]))
+ self.assertEqual(repr(r), expected)
