Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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
cpython
Commits
f24a0d90
Kaydet (Commit)
f24a0d90
authored
Ara 04, 2010
tarafından
Eric Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #10624: Move requires_IEEE_754 into test.support. I'll fix up other uses of it shortly.
üst
70099a15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
support.py
Lib/test/support.py
+5
-0
test_math.py
Lib/test/test_math.py
+1
-6
No files found.
Lib/test/support.py
Dosyayı görüntüle @
f24a0d90
...
...
@@ -366,6 +366,11 @@ def fcmp(x, y): # fuzzy comparison function
return
(
len
(
x
)
>
len
(
y
))
-
(
len
(
x
)
<
len
(
y
))
return
(
x
>
y
)
-
(
x
<
y
)
# decorator for skipping tests on non-IEEE 754 platforms
requires_IEEE_754
=
unittest
.
skipUnless
(
float
.
__getformat__
(
"double"
)
.
startswith
(
"IEEE"
),
"test requires IEEE 754 doubles"
)
is_jython
=
sys
.
platform
.
startswith
(
'java'
)
# Filename used for testing
...
...
Lib/test/test_math.py
Dosyayı görüntüle @
f24a0d90
# Python test set -- math module
# XXXX Should not do tests around zero only
from
test.support
import
run_unittest
,
verbose
from
test.support
import
run_unittest
,
verbose
,
requires_IEEE_754
import
unittest
import
math
import
os
...
...
@@ -15,11 +15,6 @@ NAN = float('nan')
INF
=
float
(
'inf'
)
NINF
=
float
(
'-inf'
)
# decorator for skipping tests on non-IEEE 754 platforms
requires_IEEE_754
=
unittest
.
skipUnless
(
float
.
__getformat__
(
"double"
)
.
startswith
(
"IEEE"
),
"test requires IEEE 754 doubles"
)
# detect evidence of double-rounding: fsum is not always correctly
# rounded on machines that suffer from double rounding.
x
,
y
=
1e16
,
2.9999
# use temporary values to defeat peephole optimizer
...
...
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