aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index f93415b..b581e12 100755
--- a/run_unittests.py
+++ b/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):
'''