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
d484605c
Kaydet (Commit)
d484605c
authored
Ock 31, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Restored test_xpickle compatibility with Python 2.5.
Python 2.5 has no unittest.skipUnless.
üst
b84e5daf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test_xpickle.py
Lib/test/test_xpickle.py
+4
-2
No files found.
Lib/test/test_xpickle.py
Dosyayı görüntüle @
d484605c
...
...
@@ -158,8 +158,10 @@ class AbstractCompatTests(AbstractPickleTests):
# This is a cut-down version of pickletester's test_unicode. Backwards
# compatibility was explicitly broken in r67934 to fix a bug.
@unittest.skipUnless
(
test_support
.
have_unicode
,
'no unicode support'
)
def
test_unicode
(
self
):
if
not
test_support
.
have_unicode
:
# Python 2.5 has no unittest.skipUnless
self
.
skipTest
(
'no unicode support'
)
endcases
=
[
u''
,
u'<
\\
u>'
,
u'<
\\
%
c>'
%
0x1234
,
u'<
\n
>'
,
u'<
\\
>'
]
for
proto
in
pickletester
.
protocols
:
for
u
in
endcases
:
...
...
@@ -218,7 +220,7 @@ class CPicklePython27Compat(AbstractCompatTests):
python
=
"python2.7"
error
=
cPickle
.
BadPickleGet
class
PicklePython27Compat
(
CPicklePython2
6
Compat
):
class
PicklePython27Compat
(
CPicklePython2
7
Compat
):
module
=
pickle
error
=
KeyError
...
...
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