diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-04-10 05:46:39 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-04-10 05:46:39 +0000 |
commit | 36a59b4a08ec297d0caabd5ff60375f6fd1d236f (patch) | |
tree | 30917ed4ac648a98e8200398cf30afba04d3926b /Lib/test/test_array.py | |
parent | 60a819d681d1004a9703b050501b70912f40b1ed (diff) | |
download | cpython-git-36a59b4a08ec297d0caabd5ff60375f6fd1d236f.tar.gz |
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_array.py')
-rwxr-xr-x | Lib/test/test_array.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index a54594a450..b11c9d601c 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -163,6 +163,7 @@ class BaseTest(unittest.TestCase): a = array.array(self.typecode, 2*self.example) self.assertRaises(TypeError, a.tofile) self.assertRaises(TypeError, a.tofile, cStringIO.StringIO()) + test_support.unlink(test_support.TESTFN) f = open(test_support.TESTFN, 'wb') try: a.tofile(f) |