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
8da4023e
Kaydet (Commit)
8da4023e
authored
Ock 11, 2016
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Comment out another test that won't pass after reverting the picklability
regression.
üst
607965eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
test_csv.py
Lib/test/test_csv.py
+11
-10
No files found.
Lib/test/test_csv.py
Dosyayı görüntüle @
8da4023e
...
...
@@ -468,16 +468,17 @@ class TestDialectRegistry(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
csv
.
reader
,
[],
quoting
=
-
1
)
self
.
assertRaises
(
TypeError
,
csv
.
reader
,
[],
quoting
=
100
)
def
test_copy
(
self
):
for
name
in
csv
.
list_dialects
():
dialect
=
csv
.
get_dialect
(
name
)
self
.
assertRaises
(
TypeError
,
copy
.
copy
,
dialect
)
def
test_pickle
(
self
):
for
name
in
csv
.
list_dialects
():
dialect
=
csv
.
get_dialect
(
name
)
for
proto
in
range
(
pickle
.
HIGHEST_PROTOCOL
+
1
):
self
.
assertRaises
(
TypeError
,
pickle
.
dumps
,
dialect
,
proto
)
# See issue #22995
## def test_copy(self):
## for name in csv.list_dialects():
## dialect = csv.get_dialect(name)
## self.assertRaises(TypeError, copy.copy, dialect)
## def test_pickle(self):
## for name in csv.list_dialects():
## dialect = csv.get_dialect(name)
## for proto in range(pickle.HIGHEST_PROTOCOL + 1):
## self.assertRaises(TypeError, pickle.dumps, dialect, proto)
class
TestCsvBase
(
unittest
.
TestCase
):
def
readerAssertEqual
(
self
,
input
,
expected_result
):
...
...
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