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
3634bfbe
Kaydet (Commit)
3634bfbe
authored
Şub 13, 2012
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lib2to3 tests: Don't use deprecated API, switch to assertRegex()
üst
5e4d9087
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test_main.py
Lib/lib2to3/tests/test_main.py
+1
-1
test_refactor.py
Lib/lib2to3/tests/test_refactor.py
+1
-1
No files found.
Lib/lib2to3/tests/test_main.py
Dosyayı görüntüle @
3634bfbe
...
@@ -94,7 +94,7 @@ class TestMain(unittest.TestCase):
...
@@ -94,7 +94,7 @@ class TestMain(unittest.TestCase):
self
.
assertIn
(
"Writing converted
%
s to
%
s"
%
(
self
.
assertIn
(
"Writing converted
%
s to
%
s"
%
(
os
.
path
.
join
(
self
.
py2_src_dir
,
name
),
os
.
path
.
join
(
self
.
py2_src_dir
,
name
),
os
.
path
.
join
(
self
.
py3_dest_dir
,
name
+
suffix
)),
stderr
)
os
.
path
.
join
(
self
.
py3_dest_dir
,
name
+
suffix
)),
stderr
)
self
.
assertRegex
pMatches
(
stderr
,
r"No changes to .*/__init__\.py"
)
self
.
assertRegex
(
stderr
,
r"No changes to .*/__init__\.py"
)
self
.
assertNotRegex
(
stderr
,
r"No changes to .*/trivial\.py"
)
self
.
assertNotRegex
(
stderr
,
r"No changes to .*/trivial\.py"
)
def
test_filename_changing_on_output_two_files
(
self
):
def
test_filename_changing_on_output_two_files
(
self
):
...
...
Lib/lib2to3/tests/test_refactor.py
Dosyayı görüntüle @
3634bfbe
...
@@ -230,7 +230,7 @@ from __future__ import print_function"""
...
@@ -230,7 +230,7 @@ from __future__ import print_function"""
os
.
sep
,
os
.
path
.
basename
(
test_file
))
os
.
sep
,
os
.
path
.
basename
(
test_file
))
for
message
in
debug_messages
:
for
message
in
debug_messages
:
if
"Not writing changes"
in
message
:
if
"Not writing changes"
in
message
:
self
.
assertRegex
pMatches
(
message
,
message_regex
)
self
.
assertRegex
(
message
,
message_regex
)
break
break
else
:
else
:
self
.
fail
(
"
%
r not matched in
%
r"
%
(
message_regex
,
debug_messages
))
self
.
fail
(
"
%
r not matched in
%
r"
%
(
message_regex
,
debug_messages
))
...
...
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