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
9d487ae2
Kaydet (Commit)
9d487ae2
authored
Ock 19, 2014
tarafından
Alex Gaynor
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #21628 -- removed one usage of the imp module in the tests. It is deprecated in Python 3.4
üst
10e0cfc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_loaders.py
tests/template_tests/test_loaders.py
+2
-2
No files found.
tests/template_tests/test_loaders.py
Dosyayı görüntüle @
9d487ae2
...
...
@@ -9,9 +9,9 @@ from django.conf import settings
if
__name__
==
'__main__'
:
settings
.
configure
()
import
imp
import
os.path
import
sys
import
types
import
unittest
try
:
...
...
@@ -41,7 +41,7 @@ def create_egg(name, resources):
name: The name of the module.
resources: A dictionary of resources. Keys are the names and values the data.
"""
egg
=
imp
.
new_modul
e
(
name
)
egg
=
types
.
ModuleTyp
e
(
name
)
egg
.
__loader__
=
MockLoader
()
egg
.
_resources
=
resources
sys
.
modules
[
name
]
=
egg
...
...
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