summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_base64.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-03-02 01:24:13 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-03-02 01:24:13 (GMT)
commit2f24d98df08fbed8e7c82a3de1843ef27b779739 (patch)
tree038b097ad8c79e0a8f558437990fedd576f39377 /Lib/test/test_base64.py
parentbe52d507d2ada0d13ad9e482f00908173d8900f0 (diff)
parentf959618142888fab373c43edd35f20506a9740dc (diff)
downloadcpython-2f24d98df08fbed8e7c82a3de1843ef27b779739.zip
cpython-2f24d98df08fbed8e7c82a3de1843ef27b779739.tar.gz
cpython-2f24d98df08fbed8e7c82a3de1843ef27b779739.tar.bz2
Closes #14158: merged test file resilience fix from 3.2.
Diffstat (limited to 'Lib/test/test_base64.py')
-rw-r--r--Lib/test/test_base64.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_base64.py b/Lib/test/test_base64.py
index b02f86d..2569476 100644
--- a/Lib/test/test_base64.py
+++ b/Lib/test/test_base64.py
@@ -2,6 +2,7 @@ import unittest
from test import support
import base64
import binascii
+import os
import sys
import subprocess
@@ -274,6 +275,10 @@ class BaseXYTestCase(unittest.TestCase):
class TestMain(unittest.TestCase):
+ def tearDown(self):
+ if os.path.exists(support.TESTFN):
+ os.unlink(support.TESTFN)
+
def get_output(self, *args, **options):
args = (sys.executable, '-m', 'base64') + args
return subprocess.check_output(args, **options)