Commit f1399ac5 authored by Jason Madden's avatar Jason Madden

Appease the leakchecker.

parent 78558892
......@@ -506,7 +506,7 @@ class TestBasic(greentest.TestCase):
return return_value
g = gevent.Greenlet(func, 0.01, return_value=5)
g.rawlink(link_test.append) # use rawlink to avoid timing issues on Appveyor (not always successful)
g.rawlink(link_test.append) # use rawlink to avoid timing issues on Appveyor/Travis (not always successful)
assert not g, bool(g)
assert not g.dead
assert not g.started
......@@ -542,7 +542,7 @@ class TestBasic(greentest.TestCase):
assert g.successful()
assert g.value == 5
assert g.exception is None # not changed
assert link_test == [g] or greentest.RUNNING_ON_APPVEYOR, link_test # changed
assert link_test == [g] or greentest.RUNNING_ON_CI, link_test # changed
def test_error_exit(self):
link_test = []
......
......@@ -277,8 +277,7 @@ class RunFuncTestCase(greentest.TestCase):
def test_check_output_stdin_arg(self):
# run() can be called with stdin set to a file
tf = tempfile.TemporaryFile()
self.addCleanup(tf.close)
with tempfile.TemporaryFile() as tf:
tf.write(b'pear')
tf.seek(0)
cp = self.run_python(
......@@ -295,8 +294,7 @@ class RunFuncTestCase(greentest.TestCase):
def test_check_output_stdin_with_input_arg(self):
# run() refuses to accept 'stdin' with 'input'
tf = tempfile.TemporaryFile()
self.addCleanup(tf.close)
with tempfile.TemporaryFile() as tf:
tf.write(b'pear')
tf.seek(0)
with self.assertRaises(ValueError,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment