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
e1f4c92d
Kaydet (Commit)
e1f4c92d
authored
Mar 22, 2010
tarafından
Florent Xicluna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#7667: Fix doctest failures with non-ASCII paths.
üst
798e5400
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
doctest.py
Lib/doctest.py
+2
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/doctest.py
Dosyayı görüntüle @
e1f4c92d
...
@@ -1328,7 +1328,8 @@ class DocTestRunner:
...
@@ -1328,7 +1328,8 @@ class DocTestRunner:
m
=
self
.
__LINECACHE_FILENAME_RE
.
match
(
filename
)
m
=
self
.
__LINECACHE_FILENAME_RE
.
match
(
filename
)
if
m
and
m
.
group
(
'name'
)
==
self
.
test
.
name
:
if
m
and
m
.
group
(
'name'
)
==
self
.
test
.
name
:
example
=
self
.
test
.
examples
[
int
(
m
.
group
(
'examplenum'
))]
example
=
self
.
test
.
examples
[
int
(
m
.
group
(
'examplenum'
))]
return
example
.
source
.
splitlines
(
True
)
source
=
example
.
source
.
encode
(
'ascii'
,
'backslashreplace'
)
return
source
.
splitlines
(
True
)
else
:
else
:
return
self
.
save_linecache_getlines
(
filename
,
module_globals
)
return
self
.
save_linecache_getlines
(
filename
,
module_globals
)
...
...
Misc/NEWS
Dosyayı görüntüle @
e1f4c92d
...
@@ -29,6 +29,8 @@ Core and Builtins
...
@@ -29,6 +29,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #7667: Fix doctest failures with non-ASCII paths.
- Issue #7512: shutil.copystat() could raise an OSError when the filesystem
- Issue #7512: shutil.copystat() could raise an OSError when the filesystem
didn't support chflags() (for example ZFS under FreeBSD). The error is
didn't support chflags() (for example ZFS under FreeBSD). The error is
now silenced.
now silenced.
...
...
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