[Python-checkins] cpython (merge 3.3 -> default): #17143: merge with 3.3.
ezio.melotti
python-checkins at python.org
Wed Feb 20 01:55:07 CET 2013
http://hg.python.org/cpython/rev/1bf0ff7db856
changeset: 82270:1bf0ff7db856
parent: 82268:acf247d25f17
parent: 82269:662f97427acf
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Wed Feb 20 02:54:50 2013 +0200
summary:
#17143: merge with 3.3.
files:
Lib/test/test_trace.py | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py
--- a/Lib/test/test_trace.py
+++ b/Lib/test/test_trace.py
@@ -3,7 +3,6 @@
import sys
from test.support import (run_unittest, TESTFN, rmtree, unlink,
captured_stdout)
-import tempfile
import unittest
import trace
@@ -396,14 +395,16 @@
trace.find_lines(foo.__code__, ["eggs"])
def test_deprecated_find_strings(self):
+ with open(TESTFN, 'w') as fd:
+ self.addCleanup(unlink, TESTFN)
with self.assertWarns(DeprecationWarning):
- with tempfile.NamedTemporaryFile() as fd:
- trace.find_strings(fd.name)
+ trace.find_strings(fd.name)
def test_deprecated_find_executable_linenos(self):
+ with open(TESTFN, 'w') as fd:
+ self.addCleanup(unlink, TESTFN)
with self.assertWarns(DeprecationWarning):
- with tempfile.NamedTemporaryFile() as fd:
- trace.find_executable_linenos(fd.name)
+ trace.find_executable_linenos(fd.name)
def test_main():
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list