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
875dbedd
Kaydet (Commit)
875dbedd
authored
Haz 27, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
(Merge 3.4) asyncio: Fix unit tests on Windows, escape filenames in regex
üst
a81088ae
b9a301a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
test_futures.py
Lib/test/test_asyncio/test_futures.py
+4
-4
test_tasks.py
Lib/test/test_asyncio/test_tasks.py
+2
-2
No files found.
Lib/test/test_asyncio/test_futures.py
Dosyayı görüntüle @
875dbedd
...
...
@@ -322,9 +322,9 @@ class FutureTests(test_utils.TestCase):
r'source_traceback: Object created at \(most recent call last\):\n'
r' File'
r'.*\n'
r' File "
%
s", line
%
s
, in test_future_exception_never_retrieved\n'
r' File "
{filename}", line {lineno}
, in test_future_exception_never_retrieved\n'
r' future = asyncio\.Future\(loop=self\.loop\)$'
%
(
frame
[
0
],
frame
[
1
])
)
)
.
format
(
filename
=
re
.
escape
(
frame
[
0
]),
lineno
=
frame
[
1
]
)
exc_info
=
(
type
(
exc
),
exc
,
exc
.
__traceback__
)
m_log
.
error
.
assert_called_once_with
(
mock
.
ANY
,
exc_info
=
exc_info
)
else
:
...
...
@@ -333,12 +333,12 @@ class FutureTests(test_utils.TestCase):
r'Future/Task created at \(most recent call last\):\n'
r' File'
r'.*\n'
r' File "
%
s", line
%
s
, in test_future_exception_never_retrieved\n'
r' File "
{filename}", line {lineno}
, in test_future_exception_never_retrieved\n'
r' future = asyncio\.Future\(loop=self\.loop\)\n'
r'Traceback \(most recent call last\):\n'
r'.*\n'
r'MemoryError$'
%
(
frame
[
0
],
frame
[
1
])
)
)
.
format
(
filename
=
re
.
escape
(
frame
[
0
]),
lineno
=
frame
[
1
]
)
m_log
.
error
.
assert_called_once_with
(
mock
.
ANY
,
exc_info
=
False
)
message
=
m_log
.
error
.
call_args
[
0
][
0
]
self
.
assertRegex
(
message
,
re
.
compile
(
regex
,
re
.
DOTALL
))
...
...
Lib/test/test_asyncio/test_tasks.py
Dosyayı görüntüle @
875dbedd
...
...
@@ -1602,8 +1602,8 @@ class TaskTests(test_utils.TestCase):
r' File "
%
s", line
%
s, in test_coroutine_never_yielded\n'
r' coro = coro_noop\(\)$'
%
(
re
.
escape
(
coro_noop
.
__qualname__
),
func_filename
,
func_lineno
,
tb_filename
,
tb_lineno
))
re
.
escape
(
func_filename
)
,
func_lineno
,
re
.
escape
(
tb_filename
)
,
tb_lineno
))
self
.
assertRegex
(
message
,
re
.
compile
(
regex
,
re
.
DOTALL
))
...
...
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