check_scenarios should accept list only

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Test Python
    • None
    • Storage Engines, Storage Engines - Foundations, Storage Engines - Persistence
    • SE Persistence - 2025-10-24
    • None

      Diff:

      # commit dabd77a50e58a7ed5f74a34552264991ce383d06 (HEAD -> develop, origin/develop, origin/HEAD)
      
      diff --git a/test/suite/test_hs07.py b/test/suite/test_hs07.py
      index d8d4b3797e..7c4e6f906e 100644
      --- a/test/suite/test_hs07.py
      +++ b/test/suite/test_hs07.py
      @@ -38,8 +38,8 @@ class test_hs07(wttest.WiredTigerTestCase):
           conn_config = ('cache_size=50MB,eviction_updates_trigger=95,eviction_updates_target=80')
       
           format_values = (
      -        ('column', dict(key_format='r', value_format='S')),
      -        ('column-fix', dict(key_format='r', value_format='8t')),
      +        # ('column', dict(key_format='r', value_format='S')),
      +        # ('column-fix', dict(key_format='r', value_format='8t')),
               ('integer-row', dict(key_format='i', value_format='S'))
           )
           scenarios = make_scenarios(format_values)
      

      Reproducer:

      python3 ../test/suite/run.py hs07
      

      Error:

        File "/opt/homebrew/Cellar/python@3.10/3.10.19/Frameworks/Python.framework/Versions/3.10/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
          module = __import__(module_name)
        File "wiredtiger/test/suite/test_hs07.py", line 36, in <module>
          class test_hs07(wttest.WiredTigerTestCase):
        File "wiredtiger/test/suite/test_hs07.py", line 45, in test_hs07
          scenarios = make_scenarios(format_values)
        File "wiredtiger/test/suite/../py_utility/wtscenario.py", line 78, in make_scenarios
          scenes = multiply_scenarios('.', *args)
        File "wiredtiger/test/suite/../py_utility/wtscenario.py", line 142, in multiply_scenarios
          return check_scenarios(result)
        File "wiredtiger/test/suite/../py_utility/wtscenario.py", line 105, in check_scenarios
          assert len(scenes) == len(dict((k.lower(), v) for k, v in scenes))
        File "wiredtiger/test/suite/../py_utility/wtscenario.py", line 105, in <genexpr>
          assert len(scenes) == len(dict((k.lower(), v) for k, v in scenes))
      ValueError: too many values to unpack (expected 2)
      

            Assignee:
            Etienne Petrel
            Reporter:
            Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: