aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_gettext.py50
1 files changed, 0 insertions, 50 deletions
diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py
index b2fe3e28c3b..e517c9d5c2a 100644
--- a/Lib/test/test_gettext.py
+++ b/Lib/test/test_gettext.py
@@ -10,8 +10,6 @@ from test.support import os_helper
# TODO:
# - Add new tests, for example for "dgettext"
-# - Remove dummy tests, for example testing for single and double quotes
-# has no sense, it would have if we were testing a parser (i.e. pygettext)
# - Tests should have only one assert.
GNU_MO_DATA = b'''\
@@ -175,30 +173,6 @@ class GettextTestCase1(GettextBaseTest):
eq(pgettext('my other context', 'nudge nudge'),
'wink wink (in "my other context")')
- def test_double_quotes(self):
- eq = self.assertEqual
- # double quotes
- eq(_("albatross"), 'albatross')
- eq(_("mullusk"), 'bacon')
- eq(_(r"Raymond Luxury Yach-t"), 'Throatwobbler Mangrove')
- eq(_(r"nudge nudge"), 'wink wink')
-
- def test_triple_single_quotes(self):
- eq = self.assertEqual
- # triple single quotes
- eq(_('''albatross'''), 'albatross')
- eq(_('''mullusk'''), 'bacon')
- eq(_(r'''Raymond Luxury Yach-t'''), 'Throatwobbler Mangrove')
- eq(_(r'''nudge nudge'''), 'wink wink')
-
- def test_triple_double_quotes(self):
- eq = self.assertEqual
- # triple double quotes
- eq(_("""albatross"""), 'albatross')
- eq(_("""mullusk"""), 'bacon')
- eq(_(r"""Raymond Luxury Yach-t"""), 'Throatwobbler Mangrove')
- eq(_(r"""nudge nudge"""), 'wink wink')
-
def test_multiline_strings(self):
eq = self.assertEqual
# multiline strings
@@ -285,30 +259,6 @@ class GettextTestCase2(GettextBaseTest):
eq(gettext.dpgettext('gettext', 'my other context', 'nudge nudge'),
'wink wink (in "my other context")')
- def test_double_quotes(self):
- eq = self.assertEqual
- # double quotes
- eq(self._("albatross"), 'albatross')
- eq(self._("mullusk"), 'bacon')
- eq(self._(r"Raymond Luxury Yach-t"), 'Throatwobbler Mangrove')
- eq(self._(r"nudge nudge"), 'wink wink')
-
- def test_triple_single_quotes(self):
- eq = self.assertEqual
- # triple single quotes
- eq(self._('''albatross'''), 'albatross')
- eq(self._('''mullusk'''), 'bacon')
- eq(self._(r'''Raymond Luxury Yach-t'''), 'Throatwobbler Mangrove')
- eq(self._(r'''nudge nudge'''), 'wink wink')
-
- def test_triple_double_quotes(self):
- eq = self.assertEqual
- # triple double quotes
- eq(self._("""albatross"""), 'albatross')
- eq(self._("""mullusk"""), 'bacon')
- eq(self._(r"""Raymond Luxury Yach-t"""), 'Throatwobbler Mangrove')
- eq(self._(r"""nudge nudge"""), 'wink wink')
-
def test_multiline_strings(self):
eq = self.assertEqual
# multiline strings