summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_csv.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2016-01-11 20:14:53 (GMT)
committerBarry Warsaw <barry@python.org>2016-01-11 20:14:53 (GMT)
commit09880c89e9736efe590243876d777e52b1d6abf2 (patch)
treeed2e57b189fd628cddf2fbb2395521e0483bff57 /Lib/test/test_csv.py
parent885e1939beb3ab95cc4e06d86815261256cd1d03 (diff)
downloadcpython-09880c89e9736efe590243876d777e52b1d6abf2.zip
cpython-09880c89e9736efe590243876d777e52b1d6abf2.tar.gz
cpython-09880c89e9736efe590243876d777e52b1d6abf2.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_csv.py')
-rw-r--r--Lib/test/test_csv.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py
index a90c7b2..77c315e 100644
--- a/Lib/test/test_csv.py
+++ b/Lib/test/test_csv.py
@@ -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)
-
- 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):