Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
5005b527
Kaydet (Commit)
5005b527
authored
Ara 13, 2015
tarafından
Sergey Fedoseev
Kaydeden (comit)
Claude Paroz
Ara 13, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #25925 -- Forced LANG=C for test_msgfmt_error_including_non_ascii.
üst
ed20dd2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
test_compilation.py
tests/i18n/test_compilation.py
+6
-1
No files found.
tests/i18n/test_compilation.py
Dosyayı görüntüle @
5005b527
...
...
@@ -6,6 +6,7 @@ import os
import
shutil
import
stat
import
unittest
from
subprocess
import
Popen
from
django.core.management
import
(
CommandError
,
call_command
,
execute_from_command_line
,
...
...
@@ -13,7 +14,7 @@ from django.core.management import (
from
django.core.management.commands.makemessages
import
\
Command
as
MakeMessagesCommand
from
django.core.management.utils
import
find_command
from
django.test
import
SimpleTestCase
,
override_settings
from
django.test
import
SimpleTestCase
,
mock
,
override_settings
from
django.test.utils
import
captured_stderr
,
captured_stdout
from
django.utils
import
six
,
translation
from
django.utils._os
import
upath
...
...
@@ -164,6 +165,10 @@ class CompilationErrorHandling(MessageCompilationTests):
with
self
.
assertRaises
(
CommandError
):
call_command
(
'compilemessages'
,
locale
=
[
'ja'
],
verbosity
=
0
)
# We will check the output of msgfmt, so we need to make sure its output
# is unaffected by the current locale.
@mock.patch
(
'django.core.management.utils.Popen'
,
lambda
*
args
,
**
kwargs
:
Popen
(
*
args
,
env
=
{
'LANG'
:
'C'
},
**
kwargs
))
def
test_msgfmt_error_including_non_ascii
(
self
):
# po file contains invalid msgstr content (triggers non-ascii error content).
mo_file
=
'locale/ko/LC_MESSAGES/django.mo'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment