Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3fe5cccb
Commit
3fe5cccb
authored
Jul 23, 2018
by
Serhiy Storchaka
Committed by
GitHub
Jul 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34184: Fix running Lib/test/test_dataclasses.py as a script. (GH-8382)
parent
147d9551
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/test/test_dataclasses.py
Lib/test/test_dataclasses.py
+5
-5
No files found.
Lib/test/test_dataclasses.py
View file @
3fe5cccb
...
...
@@ -1966,7 +1966,7 @@ class TestRepr(unittest.TestCase):
@
dataclass
(
repr
=
False
)
class
C
:
x
:
int
self
.
assertIn
(
'test_dataclasses
.TestRepr.test_no_repr.<locals>.C object at'
,
self
.
assertIn
(
f'
{
__name__
}
.TestRepr.test_no_repr.<locals>.C object at'
,
repr
(
C
(
3
)))
# Test a class with a __repr__ and repr=False.
...
...
@@ -2713,10 +2713,10 @@ class TestStringAnnotations(unittest.TestCase):
self
.
assertEqual
(
C
(
10
).
x
,
10
)
def
test_classvar_module_level_import
(
self
):
from
.
import
dataclass_module_1
from
.
import
dataclass_module_1_str
from
.
import
dataclass_module_2
from
.
import
dataclass_module_2_str
from
test
import
dataclass_module_1
from
test
import
dataclass_module_1_str
from
test
import
dataclass_module_2
from
test
import
dataclass_module_2_str
for
m
in
(
dataclass_module_1
,
dataclass_module_1_str
,
dataclass_module_2
,
dataclass_module_2_str
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment