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
40363b63
Kaydet (Commit)
40363b63
authored
Eyl 18, 2002
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Open the test files in binary mode so the \r\n files won't cause
failures on Windows. Closes SF bug # 609988.
üst
f027eac9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
test_email.py
Lib/email/test/test_email.py
+2
-2
test_email_torture.py
Lib/email/test/test_email_torture.py
+1
-1
No files found.
Lib/email/test/test_email.py
Dosyayı görüntüle @
40363b63
...
...
@@ -46,7 +46,7 @@ warnings.filterwarnings('ignore', '', DeprecationWarning, __name__)
def
openfile
(
filename
):
path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
landmark
),
'data'
,
filename
)
return
open
(
path
)
return
open
(
path
,
'rb'
)
...
...
@@ -743,7 +743,7 @@ Blah blah blah
class
TestMIMEAudio
(
unittest
.
TestCase
):
def
setUp
(
self
):
# In Python, audiotest.au lives in Lib/test not Lib/test/data
fp
=
open
(
findfile
(
'audiotest.au'
))
fp
=
open
(
findfile
(
'audiotest.au'
)
,
'rb'
)
try
:
self
.
_audiodata
=
fp
.
read
()
finally
:
...
...
Lib/email/test/test_email_torture.py
Dosyayı görüntüle @
40363b63
...
...
@@ -22,7 +22,7 @@ from email.Iterators import _structure
def
openfile
(
filename
):
from
os.path
import
join
,
dirname
,
abspath
path
=
abspath
(
join
(
dirname
(
testfile
),
os
.
pardir
,
'moredata'
,
filename
))
return
open
(
path
)
return
open
(
path
,
'rb'
)
# Prevent this test from running in the Python distro
try
:
...
...
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