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
3a5053b8
Kaydet (Commit)
3a5053b8
authored
Haz 29, 2013
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18322: fix some test_stat nits.
üst
a92bfa45
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
test_stat.py
Lib/test/test_stat.py
+6
-10
No files found.
Lib/test/test_stat.py
Dosyayı görüntüle @
3a5053b8
import
unittest
import
os
from
test.support
import
TESTFN
,
run_unittest
,
import_fresh_module
from
test.support
import
TESTFN
,
import_fresh_module
c_stat
=
import_fresh_module
(
'stat'
,
fresh
=
[
'_stat'
])
py_stat
=
import_fresh_module
(
'stat'
,
blocked
=
[
'_stat'
])
class
TestFilemode
(
unittest
.
TestCase
)
:
class
TestFilemode
:
statmod
=
None
file_flags
=
{
'SF_APPEND'
,
'SF_ARCHIVED'
,
'SF_IMMUTABLE'
,
'SF_NOUNLINK'
,
...
...
@@ -186,21 +186,17 @@ class TestFilemode(unittest.TestCase):
self
.
assertEqual
(
func
(
0
),
0
)
class
TestFilemodeCStat
(
TestFilemode
):
class
TestFilemodeCStat
(
TestFilemode
,
unittest
.
TestCase
):
statmod
=
c_stat
formats
=
TestFilemode
.
formats
|
{
'S_IFDOOR'
,
'S_IFPORT'
,
'S_IFWHT'
}
format_funcs
s
=
TestFilemode
.
format_funcs
|
{
'S_ISDOOR'
,
'S_ISPORT'
,
format_funcs
=
TestFilemode
.
format_funcs
|
{
'S_ISDOOR'
,
'S_ISPORT'
,
'S_ISWHT'
}
class
TestFilemodePyStat
(
TestFilemode
):
class
TestFilemodePyStat
(
TestFilemode
,
unittest
.
TestCase
):
statmod
=
py_stat
def
test_main
():
run_unittest
(
TestFilemodeCStat
)
run_unittest
(
TestFilemodePyStat
)
if
__name__
==
'__main__'
:
test_
main
()
unittest
.
main
()
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