mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Comment out some tests that won't pass now that we've reverted the
picklability regression. Also, as per further discussion, remove the regressing code.
This commit is contained in:
parent
885e1939be
commit
09880c89e9
2 changed files with 10 additions and 36 deletions
|
@ -426,16 +426,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)
|
||||
# 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)
|
||||
## 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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue