From 4c7e2022a9fb91fc937039b9dd1af31ec19f17c6 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 19 Aug 2002 01:20:09 +0000 Subject: [PATCH] A trip down memory lane. Barry checked in this test with 2.3-style imports of test_support. That causes multiple copies of test_support to get loaded, and the one used by test_base64.py didn't see the proper value of verbose=False, so spewed output. That in turn apparenly caused Barry to check in an expected-results output file, but a unitttest-based test should never have one of those. I noticed this because, on Windows, the final unittest output line contains the number of seconds needed to run the test, and that varied on *some* runs when I tried it, causing bogus test failures. Anyway, this gets rid of the expected-output file again, and changes the imports to work with 2.2's way of doing this. --- Lib/test/output/test_base64 | 8 -------- Lib/test/test_base64.py | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 Lib/test/output/test_base64 diff --git a/Lib/test/output/test_base64 b/Lib/test/output/test_base64 deleted file mode 100644 index ec6ac2b97182..000000000000 --- a/Lib/test/output/test_base64 +++ /dev/null @@ -1,8 +0,0 @@ -test_base64 -Testing decode string ... ok -Testing encode string ... ok - ----------------------------------------------------------------------- -Ran 2 tests in 0.001s - -OK diff --git a/Lib/test/test_base64.py b/Lib/test/test_base64.py index 42e3c81d7305..197997b685f5 100644 --- a/Lib/test/test_base64.py +++ b/Lib/test/test_base64.py @@ -1,5 +1,5 @@ import unittest -from test import test_support +import test_support import base64 from binascii import Error as binascii_error -- 2.47.3