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
a917a560
Kaydet (Commit)
a917a560
authored
Nis 19, 2018
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #23890 -- Removed numpy deprecation warning silencing.
Obsolete since numpy 1.12.0.
üst
c3437f73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
test_numpy.py
tests/template_tests/syntax_tests/test_numpy.py
+0
-12
No files found.
tests/template_tests/syntax_tests/test_numpy.py
Dosyayı görüntüle @
a917a560
import
warnings
from
unittest
import
skipIf
from
django.test
import
SimpleTestCase
...
...
@@ -7,23 +6,12 @@ from ..utils import setup
try
:
import
numpy
VisibleDeprecationWarning
=
numpy
.
VisibleDeprecationWarning
except
ImportError
:
numpy
=
False
except
AttributeError
:
# numpy < 1.9.0, e.g. 1.8.2 in Debian 8
VisibleDeprecationWarning
=
DeprecationWarning
@skipIf
(
numpy
is
False
,
"Numpy must be installed to run these tests."
)
class
NumpyTests
(
SimpleTestCase
):
# Ignore numpy deprecation warnings (#23890)
if
numpy
:
warnings
.
filterwarnings
(
"ignore"
,
"Using a non-integer number instead of an "
"integer will result in an error in the future"
,
VisibleDeprecationWarning
)
@setup
({
'numpy-array-index01'
:
'{{ var.1 }}'
})
def
test_numpy_array_index01
(
self
):
...
...
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