summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2015-03-25 14:29:15 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2015-03-25 14:29:15 +1100
commit22311d1c0211f8e8d3ab1d515cd45fb75f467955 (patch)
tree18ea995cb7938f67a75520f8690f9c5c3e728810
parent0fb9c1d89fc6bd3308687dbaf931ca093b078881 (diff)
downloadmongo-22311d1c0211f8e8d3ab1d515cd45fb75f467955.tar.gz
Add another check that test scenarios don't overlap naming.
This is an obscure bug - better safe than sorry. Keep the original fix since it makes it clearer what the issue is for new test implementations.
-rw-r--r--test/suite/wttest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/suite/wttest.py b/test/suite/wttest.py
index c1224538c59..628c138e9ae 100644
--- a/test/suite/wttest.py
+++ b/test/suite/wttest.py
@@ -177,6 +177,8 @@ class WiredTigerTestCase(unittest.TestCase):
sys.stderr = WiredTigerTestCase._stderr
def __init__(self, *args, **kwargs):
+ if hasattr(self, 'scenarios'):
+ assert(len(self.scenarios) == len(dict(self.scenarios)))
unittest.TestCase.__init__(self, *args, **kwargs)
if not self._globalSetup:
WiredTigerTestCase.globalSetup()