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
68f525fd
Kaydet (Commit)
68f525fd
authored
Agu 24, 2007
tarafından
Collin Winter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make test_structmembers pass when run with regrtests's -R flag.
üst
c3255565
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
test_structmembers.py
Lib/test/test_structmembers.py
+9
-6
No files found.
Lib/test/test_structmembers.py
Dosyayı görüntüle @
68f525fd
...
...
@@ -5,7 +5,7 @@ from _testcapi import test_structmembersType, \
LONG_MAX
,
LONG_MIN
,
ULONG_MAX
,
\
LLONG_MAX
,
LLONG_MIN
,
ULLONG_MAX
import
warnings
,
exceptions
,
unittest
import
warnings
,
exceptions
,
unittest
,
sys
from
test
import
test_support
ts
=
test_structmembersType
(
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9.99999
,
10.1010101010
)
...
...
@@ -59,7 +59,7 @@ class ReadWriteTests(unittest.TestCase):
class
TestWarnings
(
unittest
.
TestCase
):
def
has_warned
(
self
,
w
):
self
.
assert
_
(
w
.
category
is
RuntimeWarning
)
self
.
assert
Equal
(
w
.
category
,
RuntimeWarning
)
def
test_byte_max
(
self
):
with
test_support
.
catch_warning
()
as
w
:
...
...
@@ -94,10 +94,13 @@ class TestWarnings(unittest.TestCase):
def
test_main
(
verbose
=
None
):
test_support
.
run_unittest
(
ReadWriteTests
,
TestWarnings
)
# Obscure hack so that this test passes after reloads or repeated calls
# to test_main (regrtest -R).
if
'__warningregistry__'
in
globals
():
del
globals
()[
'__warningregistry__'
]
if
hasattr
(
sys
,
'__warningregistry__'
):
del
sys
.
__warningregistry__
test_support
.
run_unittest
(
__name__
)
if
__name__
==
"__main__"
:
test_main
(
verbose
=
True
)
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