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
73f0f18c
Kaydet (Commit)
73f0f18c
authored
Agu 13, 2012
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[py3] Fixed admin_scripts tests
üst
a06503d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
tests.py
tests/regressiontests/admin_scripts/tests.py
+7
-6
No files found.
tests/regressiontests/admin_scripts/tests.py
Dosyayı görüntüle @
73f0f18c
...
...
@@ -71,6 +71,10 @@ class AdminScriptTestCase(unittest.TestCase):
os
.
remove
(
full_name
+
'c'
)
except
OSError
:
pass
# Also remove a __pycache__ directory, if it exists
cache_name
=
os
.
path
.
join
(
test_dir
,
'__pycache__'
)
if
os
.
path
.
isdir
(
cache_name
):
shutil
.
rmtree
(
cache_name
)
def
_ext_backend_paths
(
self
):
"""
...
...
@@ -110,14 +114,11 @@ class AdminScriptTestCase(unittest.TestCase):
python_path
.
extend
(
ext_backend_base_dirs
)
os
.
environ
[
python_path_var_name
]
=
os
.
pathsep
.
join
(
python_path
)
# Silence the DeprecationWarning caused by having a locale directory
# in the project directory.
cmd
=
[
sys
.
executable
,
'-Wignore:::django.utils.translation'
,
script
]
# Move to the test directory and run
os
.
chdir
(
test_dir
)
out
,
err
=
subprocess
.
Popen
(
cmd
+
args
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
.
communicate
()
out
,
err
=
subprocess
.
Popen
([
sys
.
executable
,
script
]
+
args
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
universal_newlines
=
True
)
.
communicate
()
# Restore the old environment
if
old_django_settings_module
:
...
...
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