[Python-modules-commits] r30635 - in packages/oct2py/trunk/debian/patches (1 file)

noahfx-guest at users.alioth.debian.org noahfx-guest at users.alioth.debian.org
Mon Sep 15 19:13:01 UTC 2014


    Date: Monday, September 15, 2014 @ 19:13:00
  Author: noahfx-guest
Revision: 30635

d/patches: Added plot function from ipython

Modified:
  packages/oct2py/trunk/debian/patches/01-removes-plot-function.patch

Modified: packages/oct2py/trunk/debian/patches/01-removes-plot-function.patch
===================================================================
--- packages/oct2py/trunk/debian/patches/01-removes-plot-function.patch	2014-09-15 18:53:11 UTC (rev 30634)
+++ packages/oct2py/trunk/debian/patches/01-removes-plot-function.patch	2014-09-15 19:13:00 UTC (rev 30635)
@@ -40,3 +40,24 @@
 +#        self.oc.plot([1, 2, 3], linewidth=3, plot_dir=plot_dir)
 +#        self.oc.close()
 +#        assert glob.glob("%s/*" % plot_dir)
+--- a/oct2py/ipython/tests/test_octavemagic.py
++++ b/oct2py/ipython/tests/test_octavemagic.py
+@@ -50,12 +50,12 @@
+                           'z = x + y;')
+         npt.assert_array_equal(ip.user_ns['z'], [[4, 5]])
+ 
+-    def test_octave_plot(self):
+-        magic = self.ip.find_cell_magic('octave').__self__
+-        magic._publish_display_data = self.verify_publish_data
+-        self.ip.run_cell_magic('octave', '-f svg -s 400,500',
+-            'plot([1, 2, 3]); figure; plot([4, 5, 6]);')
+-        npt.assert_equal(self.svgs_generated, 2)
++#    def test_octave_plot(self):
++#        magic = self.ip.find_cell_magic('octave').__self__
++#        magic._publish_display_data = self.verify_publish_data
++#        self.ip.run_cell_magic('octave', '-f svg -s 400,500',
++#            'plot([1, 2, 3]); figure; plot([4, 5, 6]);')
++#        npt.assert_equal(self.svgs_generated, 2)
+ 
+     def verify_publish_data(self, source, data):
+         if 'image/svg+xml' in data:




More information about the Python-modules-commits mailing list