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
b4420d96
Kaydet (Commit)
b4420d96
authored
Eki 28, 2012
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #18964 -- floatformat test passes under py3k
Thanks Russell for the report.
üst
58337b32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
tests.py
tests/regressiontests/defaultfilters/tests.py
+8
-5
No files found.
tests/regressiontests/defaultfilters/tests.py
Dosyayı görüntüle @
b4420d96
...
...
@@ -80,13 +80,16 @@ class DefaultFiltersTests(TestCase):
decimal_ctx
.
prec
=
old_prec
# This fails because of Python's float handling. Floats with many zeroes
# after the decimal point should be passed in as another type such as
# unicode or Decimal.
@unittest.expectedFailure
def
test_floatformat_fail
(
self
):
def
test_floatformat_py2_fail
(
self
):
self
.
assertEqual
(
floatformat
(
1.00000000000000015
,
16
),
'1.0000000000000002'
)
# The test above fails because of Python 2's float handling. Floats with
# many zeroes after the decimal point should be passed in as another type
# such as unicode or Decimal.
if
not
six
.
PY3
:
test_floatformat_py2_fail
=
unittest
.
expectedFailure
(
test_floatformat_py2_fail
)
def
test_addslashes
(
self
):
self
.
assertEqual
(
addslashes
(
'"double quotes" and
\'
single quotes
\'
'
),
'
\\
"double quotes
\\
" and
\\\'
single quotes
\\\'
'
)
...
...
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