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
b03c2c51
Kaydet (Commit)
b03c2c51
authored
Eyl 06, 2018
tarafından
Zackery Spytz
Kaydeden (comit)
Benjamin Peterson
Eyl 06, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
closes bpo-34594: Don't hardcode errno values in the tests. (GH-9076)
üst
3e2b29dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
test_spwd.py
Lib/test/test_spwd.py
+0
-2
test_tabnanny.py
Lib/test/test_tabnanny.py
+3
-1
2018-09-05-23-50-21.bpo-34594.tqL-GS.rst
...EWS.d/next/Tests/2018-09-05-23-50-21.bpo-34594.tqL-GS.rst
+1
-0
No files found.
Lib/test/test_spwd.py
Dosyayı görüntüle @
b03c2c51
...
@@ -67,8 +67,6 @@ class TestSpwdNonRoot(unittest.TestCase):
...
@@ -67,8 +67,6 @@ class TestSpwdNonRoot(unittest.TestCase):
spwd
.
getspnam
(
name
)
spwd
.
getspnam
(
name
)
except
KeyError
as
exc
:
except
KeyError
as
exc
:
self
.
skipTest
(
"spwd entry
%
r doesn't exist:
%
s"
%
(
name
,
exc
))
self
.
skipTest
(
"spwd entry
%
r doesn't exist:
%
s"
%
(
name
,
exc
))
else
:
self
.
assertEqual
(
str
(
cm
.
exception
),
'[Errno 13] Permission denied'
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
Lib/test/test_tabnanny.py
Dosyayı görüntüle @
b03c2c51
...
@@ -5,6 +5,7 @@ Glossary:
...
@@ -5,6 +5,7 @@ Glossary:
"""
"""
from
unittest
import
TestCase
,
mock
from
unittest
import
TestCase
,
mock
from
unittest
import
mock
from
unittest
import
mock
import
errno
import
tabnanny
import
tabnanny
import
tokenize
import
tokenize
import
tempfile
import
tempfile
...
@@ -232,7 +233,8 @@ class TestCheck(TestCase):
...
@@ -232,7 +233,8 @@ class TestCheck(TestCase):
def
test_when_no_file
(
self
):
def
test_when_no_file
(
self
):
"""A python file which does not exist actually in system."""
"""A python file which does not exist actually in system."""
path
=
'no_file.py'
path
=
'no_file.py'
err
=
f
"{path!r}: I/O Error: [Errno 2] No such file or directory: {path!r}
\n
"
err
=
f
"{path!r}: I/O Error: [Errno {errno.ENOENT}] "
\
f
"No such file or directory: {path!r}
\n
"
self
.
verify_tabnanny_check
(
path
,
err
=
err
)
self
.
verify_tabnanny_check
(
path
,
err
=
err
)
def
test_errored_directory
(
self
):
def
test_errored_directory
(
self
):
...
...
Misc/NEWS.d/next/Tests/2018-09-05-23-50-21.bpo-34594.tqL-GS.rst
0 → 100644
Dosyayı görüntüle @
b03c2c51
Fix usage of hardcoded ``errno`` values in the tests.
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