diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-04-10 05:46:39 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-04-10 05:46:39 (GMT) |
commit | 36a59b4a08ec297d0caabd5ff60375f6fd1d236f (patch) | |
tree | 30917ed4ac648a98e8200398cf30afba04d3926b /Lib/test/test_deque.py | |
parent | 60a819d681d1004a9703b050501b70912f40b1ed (diff) | |
download | cpython-36a59b4a08ec297d0caabd5ff60375f6fd1d236f.zip cpython-36a59b4a08ec297d0caabd5ff60375f6fd1d236f.tar.gz cpython-36a59b4a08ec297d0caabd5ff60375f6fd1d236f.tar.bz2 |
Remove the test file before writing it in case there is no write permission.
This might help fix some of the failures on Windows box(es). It doesn't hurt
either way and ensure the tests are a little more self contained (ie have
less assumptions).
Diffstat (limited to 'Lib/test/test_deque.py')
-rw-r--r-- | Lib/test/test_deque.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py index a185f78..0b751d8 100644 --- a/Lib/test/test_deque.py +++ b/Lib/test/test_deque.py @@ -63,6 +63,7 @@ class TestBasic(unittest.TestCase): self.assertEqual(list(d), range(7, 10)) d = deque(xrange(200), maxlen=10) d.append(d) + test_support.unlink(test_support.TESTFN) fo = open(test_support.TESTFN, "wb") try: print >> fo, d, @@ -281,6 +282,7 @@ class TestBasic(unittest.TestCase): def test_print(self): d = deque(xrange(200)) d.append(d) + test_support.unlink(test_support.TESTFN) fo = open(test_support.TESTFN, "wb") try: print >> fo, d, |