summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-24 18:57:05 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-03-24 18:57:05 (GMT)
commit576483085c7357130afba7f605db431df255ec74 (patch)
treeca4f7809d7476088594b9336bce372463ba164c7 /Lib/test
parentb588f8dd9fcd4881659b1037f92e433d3fb6c29c (diff)
downloadcpython-576483085c7357130afba7f605db431df255ec74.zip
cpython-576483085c7357130afba7f605db431df255ec74.tar.gz
cpython-576483085c7357130afba7f605db431df255ec74.tar.bz2
#11093: make NOTTESTS empty by renaming confusingly named files in test dir.
Patch by Sandro Tosi.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/future_test1.py (renamed from Lib/test/test_future1.py)0
-rw-r--r--Lib/test/future_test2.py (renamed from Lib/test/test_future2.py)0
-rwxr-xr-xLib/test/regrtest.py5
-rw-r--r--Lib/test/test_future.py12
4 files changed, 7 insertions, 10 deletions
diff --git a/Lib/test/test_future1.py b/Lib/test/future_test1.py
index 297c2e0..297c2e0 100644
--- a/Lib/test/test_future1.py
+++ b/Lib/test/future_test1.py
diff --git a/Lib/test/test_future2.py b/Lib/test/future_test2.py
index 3d7fc86..3d7fc86 100644
--- a/Lib/test/test_future2.py
+++ b/Lib/test/future_test2.py
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index ca9e9f4..f6cf0a7 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -743,10 +743,7 @@ STDTESTS = [
]
# set of tests that we don't want to be executed when using regrtest
-NOTTESTS = {
- 'test_future1',
- 'test_future2',
-}
+NOTTESTS = set()
def findtests(testdir=None, stdtests=STDTESTS, nottests=NOTTESTS):
"""Return a list of all applicable test modules."""
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py
index c6689a1..3a25eb1 100644
--- a/Lib/test/test_future.py
+++ b/Lib/test/test_future.py
@@ -13,14 +13,14 @@ def get_error_location(msg):
class FutureTest(unittest.TestCase):
def test_future1(self):
- support.unload('test_future1')
- from test import test_future1
- self.assertEqual(test_future1.result, 6)
+ support.unload('future_test1')
+ from test import future_test1
+ self.assertEqual(future_test1.result, 6)
def test_future2(self):
- support.unload('test_future2')
- from test import test_future2
- self.assertEqual(test_future2.result, 6)
+ support.unload('future_test2')
+ from test import future_test2
+ self.assertEqual(future_test2.result, 6)
def test_future3(self):
support.unload('test_future3')