dict: unit test integer key

pull/3490/head
Mathieu Duponchelle 7 years ago
parent 10e7566ed8
commit 5bb863c891
  1. 4
      run_unittests.py

@ -2338,6 +2338,10 @@ class FailureTests(BasePlatformTests):
self.assertMesonRaises("dict = {'a': 41, 'a': 42}",
'Duplicate dictionary key: a.*')
def test_dict_forbids_integer_key(self):
self.assertMesonRaises("dict = {3: 'foo'}",
'Key must be a string.*')
class WindowsTests(BasePlatformTests):
'''

Loading…
Cancel
Save