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
7ebb9706
Kaydet (Commit)
7ebb9706
authored
May 15, 2007
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make test_re pass.
üst
e1083734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
test_re.py
Lib/test/test_re.py
+2
-14
No files found.
Lib/test/test_re.py
Dosyayı görüntüle @
7ebb9706
...
...
@@ -560,10 +560,6 @@ class ReTests(unittest.TestCase):
def
test_bug_764548
(
self
):
# bug 764548, re.compile() barfs on str/unicode subclasses
try
:
str
except
NameError
:
return
# no problem if we have no unicode
class
my_unicode
(
str
):
pass
pat
=
re
.
compile
(
my_unicode
(
"abc"
))
self
.
assertEqual
(
pat
.
match
(
"xyz"
),
None
)
...
...
@@ -574,19 +570,11 @@ class ReTests(unittest.TestCase):
[
":"
,
"::"
,
":::"
])
def
test_bug_926075
(
self
):
try
:
str
except
NameError
:
return
# no problem if we have no unicode
self
.
assert_
(
re
.
compile
(
'bug_926075'
)
is
not
re
.
compile
(
eval
(
"u'bug_926075'"
)))
re
.
compile
(
str8
(
'bug_926075'
)))
def
test_bug_931848
(
self
):
try
:
str
except
NameError
:
pass
pattern
=
eval
(
'u"[
\u002E\u3002\uFF0E\uFF61
]"'
)
pattern
=
eval
(
'"[
\u002E\u3002\uFF0E\uFF61
]"'
)
self
.
assertEqual
(
re
.
compile
(
pattern
)
.
split
(
"a.b.c"
),
[
'a'
,
'b'
,
'c'
])
...
...
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