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
417ec4a6
Kaydet (Commit)
417ec4a6
authored
May 25, 2014
tarafından
Loic Bistuer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed a ResourceWarning that wasn't properly fixed by the previous commit.
Also removed unused import in runtests.py.
üst
b7de5f5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
tests.py
tests/file_uploads/tests.py
+0
-2
runtests.py
tests/runtests.py
+1
-1
No files found.
tests/file_uploads/tests.py
Dosyayı görüntüle @
417ec4a6
...
...
@@ -271,12 +271,10 @@ class FileUploadTests(TestCase):
file
=
tempfile
.
NamedTemporaryFile
with
file
()
as
smallfile
,
file
()
as
bigfile
:
# A small file (under the 5M quota)
smallfile
=
tempfile
.
NamedTemporaryFile
()
smallfile
.
write
(
b
'a'
*
(
2
**
21
))
smallfile
.
seek
(
0
)
# A big file (over the quota)
bigfile
=
tempfile
.
NamedTemporaryFile
()
bigfile
.
write
(
b
'a'
*
(
10
*
2
**
20
))
bigfile
.
seek
(
0
)
...
...
tests/runtests.py
Dosyayı görüntüle @
417ec4a6
...
...
@@ -10,7 +10,7 @@ import warnings
import
django
from
django
import
contrib
from
django.apps
import
apps
,
AppConfig
from
django.apps
import
apps
from
django.conf
import
settings
from
django.db
import
connection
from
django.test
import
TransactionTestCase
,
TestCase
...
...
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