Exemplo n.º 1
0
 def testRenderToFile(self):
     fn = tempfile.mktemp(suffix=".png")
     with grdevices.render_to_file(grdevices.png,
                                   filename=fn) as d:
         r(''' plot(0) ''')
     self._todelete.append(fn)
     self.assertTrue(os.path.exists(fn))
Exemplo n.º 2
0
def test_rendertofile():
    fn = tempfile.mktemp(suffix=".png")
    with set_filenames_to_delete() as todelete:
        todelete.add(fn)

        with grdevices.render_to_file(grdevices.png, filename=fn) as d:
            r(''' plot(0) ''')
        assert os.path.exists(fn)
Exemplo n.º 3
0
 def testRenderToFile(self):
     with grdevices.render_to_file(grdevices.png) as fn:
         r(''' plot(0) ''')
     self._todelete.append(fn)
     self.assertTrue(os.path.exists(fn))