mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Don't use metaclasses when class decorators can do the job.
Thanks to Nick Coghlan for pointing out that I'd forgotten about class decorators.
This commit is contained in:
parent
8e0ed333b9
commit
1be413e366
6 changed files with 63 additions and 64 deletions
|
|
@ -4,10 +4,11 @@ import unittest
|
|||
from email import message_from_string, message_from_bytes
|
||||
from email.generator import Generator, BytesGenerator
|
||||
from email import policy
|
||||
from test.test_email import TestEmailBase, Parameterized
|
||||
from test.test_email import TestEmailBase, parameterize
|
||||
|
||||
|
||||
class TestGeneratorBase(metaclass=Parameterized):
|
||||
@parameterize
|
||||
class TestGeneratorBase:
|
||||
|
||||
policy = policy.default
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue