Skip to content

Commit

Permalink
fix in test for interrupts
Browse files Browse the repository at this point in the history
--HG--
branch : version_2.1.x
  • Loading branch information
lgautier committed Apr 1, 2010
1 parent 2b577fa commit 35d649d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Binary file modified doc/source/_static/graphics_ggplot2withgrid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions rpy/rinterface/tests/test_EmbeddedR.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,11 @@ def testInterruptR(self):
rpy_code.write(rpy_code_str)
rpy_code.close()
child_proc = subprocess.Popen(('python', rpy_code.name))
#child_proc = subprocess.Popen(('sleep', '113'))
#import pdb; pdb.set_trace()
time.sleep(1) # required for the SIGINT to function
# (appears like a bug w/ subprocess)
# (the exact sleep time migth be machine dependent :( )
child_proc.send_signal(signal.SIGINT)
ret_code = child_proc.poll()
#print(ret_code)
#import pdb; pdb.set_trace()
self.assertFalse(ret_code is None) # Interruption failed


Expand Down

0 comments on commit 35d649d

Please sign in to comment.