diff options
author | Inada Naoki <songofacandy@gmail.com> | 2020-07-20 03:02:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 03:02:50 (GMT) |
commit | 902356a7b0564e2c9659aaec56211de4d37109d0 (patch) | |
tree | a052987fd1daa442783155f2748c48de1322fa91 /Lib/test/test_csv.py | |
parent | bfd0fbdc1352534b3c91b46dbae4285f5220acf4 (diff) | |
download | cpython-902356a7b0564e2c9659aaec56211de4d37109d0.zip cpython-902356a7b0564e2c9659aaec56211de4d37109d0.tar.gz cpython-902356a7b0564e2c9659aaec56211de4d37109d0.tar.bz2 |
bpo-41338: Fix DeprecationWarning in tests (GH-21542)
Diffstat (limited to 'Lib/test/test_csv.py')
-rw-r--r-- | Lib/test/test_csv.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py index a92870c..3816022 100644 --- a/Lib/test/test_csv.py +++ b/Lib/test/test_csv.py @@ -10,6 +10,7 @@ import csv import gc import pickle from test import support +from test.support import warnings_helper from itertools import permutations from textwrap import dedent from collections import OrderedDict @@ -251,6 +252,7 @@ class Test_Csv(unittest.TestCase): @support.cpython_only @support.requires_legacy_unicode_capi + @warnings_helper.ignore_warnings(category=DeprecationWarning) def test_writerows_legacy_strings(self): import _testcapi c = _testcapi.unicode_legacy_string('a') |