summaryrefslogtreecommitdiff
path: root/tests/test_gi.py
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-03-15 00:49:00 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2014-03-15 01:09:24 -0700
commit2d268ef661badabcb63e696dab01857d57cb3371 (patch)
tree5a70f2dd7137161ea95983de88047cccf39d05ae /tests/test_gi.py
parenta070e712526e433c236753813acc3ef300f0d203 (diff)
downloadpygobject-2d268ef661badabcb63e696dab01857d57cb3371.tar.gz
Quote argument names in initializer deprecation warning
Add quotation marks around names of deprecated positional arguments. This makes the message clearer in stating what has been deprecated in cases when only a single argument is displayed.
Diffstat (limited to 'tests/test_gi.py')
-rw-r--r--tests/test_gi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 2a6cc3db..5f6e4810 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -3037,7 +3037,7 @@ class TestDeprecation(unittest.TestCase):
self.assertEqual(len(warn), 1)
self.assertTrue(issubclass(warn[0].category, PyGIDeprecationWarning))
self.assertRegexpMatches(str(warn[0].message),
- '.*keywords.*a, b, c.*')
+ '.*keyword.*a, b, c.*')
def test_deprecated_init_no_keywords_out_of_order(self):
def init(self, **kwargs):
@@ -3050,7 +3050,7 @@ class TestDeprecation(unittest.TestCase):
self.assertEqual(len(warn), 1)
self.assertTrue(issubclass(warn[0].category, PyGIDeprecationWarning))
self.assertRegexpMatches(str(warn[0].message),
- '.*keywords.*b, a, c.*')
+ '.*keyword.*b, a, c.*')
def test_deprecated_init_ignored_keyword(self):
def init(self, **kwargs):
@@ -3065,7 +3065,7 @@ class TestDeprecation(unittest.TestCase):
self.assertEqual(len(warn), 1)
self.assertTrue(issubclass(warn[0].category, PyGIDeprecationWarning))
self.assertRegexpMatches(str(warn[0].message),
- '.*keywords.*a, b, c.*')
+ '.*keyword.*a, b, c.*')
def test_deprecated_init_with_aliases(self):
def init(self, **kwargs):