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
c8d502ea
Kaydet (Commit)
c8d502ea
authored
Mar 20, 2010
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix the warnings usage in test_posix.
üst
d3791ed4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
test_posix.py
Lib/test/test_posix.py
+5
-2
No files found.
Lib/test/test_posix.py
Dosyayı görüntüle @
c8d502ea
...
...
@@ -13,8 +13,6 @@ import shutil
import
unittest
import
warnings
warnings
.
filterwarnings
(
'ignore'
,
'.* potential security risk .*'
,
RuntimeWarning
)
class
PosixTester
(
unittest
.
TestCase
):
...
...
@@ -22,9 +20,14 @@ class PosixTester(unittest.TestCase):
# create empty file
fp
=
open
(
support
.
TESTFN
,
'w+'
)
fp
.
close
()
self
.
_warnings_manager
=
support
.
check_warnings
()
self
.
_warnings_manager
.
__enter__
()
warnings
.
filterwarnings
(
'ignore'
,
'.* potential security risk .*'
,
RuntimeWarning
)
def
tearDown
(
self
):
support
.
unlink
(
support
.
TESTFN
)
self
.
_warnings_manager
.
__exit__
(
None
,
None
,
None
)
def
testNoArgFunctions
(
self
):
# test posix functions which take no arguments and have
...
...
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