mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-44089: Allow subclassing of `csv.Error
` (GH-26008)
* fix subclass error * Update 2021-05-09-22-52-34.bpo-44089.IoANsN.rst
This commit is contained in:
parent
5010c044c7
commit
2b458c1dba
3 changed files with 6 additions and 1 deletions
|
@ -1237,6 +1237,9 @@ class MiscTestCase(unittest.TestCase):
|
|||
extra = {'__doc__', '__version__'}
|
||||
support.check__all__(self, csv, ('csv', '_csv'), extra=extra)
|
||||
|
||||
def test_subclassable(self):
|
||||
# issue 44089
|
||||
class Foo(csv.Error): ...
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue