Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(106527)

Unified Diff: Lib/test/test_gc.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_file_eintr.py ('k') | Lib/test/test_gdb.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_gc.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_gc.py Wed Mar 02 00:01:35 2016 +0000
@@ -645,16 +645,18 @@ class GCTests(unittest.TestCase):
pass
x = X('first')
x.x = x
x.y = X('second')
del x
gc.set_debug(%s)
"""
+
+ @unittest.skipUnless(hasattr(subprocess, 'Popen'), "test requires subprocess.Popen()")
def run_command(code):
p = subprocess.Popen([sys.executable, "-Wd", "-c", code],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
p.stdout.close()
p.stderr.close()
self.assertEqual(p.returncode, 0)
« no previous file with comments | « Lib/test/test_file_eintr.py ('k') | Lib/test/test_gdb.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+