Skip to content

Commit

Permalink
Allowing "dank" or "danke" when "dankon" translated from Esperanto to…
Browse files Browse the repository at this point in the history
… German. (googleapis#3337)

This test has been non-deterministic for some reason, e.g.:
https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/1682
  • Loading branch information
dhermes authored Apr 27, 2017
1 parent 3546f7f commit eaf7bd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions translate/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ def test_translate(self):

self.assertEqual(
translations[1]['detectedSourceLanguage'], 'eo')
self.assertEqual(
translations[1]['translatedText'], 'dank')
# For some reason this is translated as both "dank" and "danke"
# in a seemingly non-deterministic way.
self.assertIn(
translations[1]['translatedText'], ('dank', 'danke'))

self.assertEqual(
translations[2]['detectedSourceLanguage'], 'es')
Expand Down

0 comments on commit eaf7bd4

Please sign in to comment.