summaryrefslogtreecommitdiff
path: root/Lib/test/test_dataclasses.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-08-06 09:16:01 -0700
committerGitHub <noreply@github.com>2022-08-06 09:16:01 -0700
commit9a23f582ee0c64954b930c9c03d1fd02ce8d4044 (patch)
tree9577a358a78dec36cfda0d5b59937d4b3b6b79f1 /Lib/test/test_dataclasses.py
parent426bf7bbf901fabe0f2b9b9241147864f5e66fc9 (diff)
downloadcpython-git-9a23f582ee0c64954b930c9c03d1fd02ce8d4044.tar.gz
Fix typo in test_dataclasses.py (gh-95735)
`dataclass` was called as a function when it was almost certainly intended to be a decorator. (cherry picked from commit 59e09efe888affe549e9249f188797c1325edecc) Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Diffstat (limited to 'Lib/test/test_dataclasses.py')
-rw-r--r--Lib/test/test_dataclasses.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_dataclasses.py b/Lib/test/test_dataclasses.py
index f4f7ed5aca..f72e81c31e 100644
--- a/Lib/test/test_dataclasses.py
+++ b/Lib/test/test_dataclasses.py
@@ -2129,12 +2129,12 @@ class TestInit(unittest.TestCase):
self.assertEqual(c.z, 100)
def test_no_init(self):
- dataclass(init=False)
+ @dataclass(init=False)
class C:
i: int = 0
self.assertEqual(C().i, 0)
- dataclass(init=False)
+ @dataclass(init=False)
class C:
i: int = 2
def __init__(self):