Skip to content

Commit

Permalink
resolve merge changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Oct 4, 2023
1 parent fb5e27a commit 8f6aad7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Lib/test/test_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,13 +959,13 @@ class PointFromClass(NamedTuple):
with self.subTest(Point=Point):
p = Point(11, 22)
self.assertIsInstance(p, Point)
self.assertEqual(copy.replace(p), (11, 22))
self.assertIsInstance(copy.replace(p), Point)
self.assertEqual(copy.replace(p, x=1), (1, 22))
self.assertEqual(copy.replace(p, y=2), (11, 2))
self.assertEqual(copy.replace(p, x=1, y=2), (1, 2))
self.assertEqual(self.copy_module.replace(p), (11, 22))
self.assertIsInstance(self.copy_module.replace(p), Point)
self.assertEqual(self.copy_module.replace(p, x=1), (1, 22))
self.assertEqual(self.copy_module.replace(p, y=2), (11, 2))
self.assertEqual(self.copy_module.replace(p, x=1, y=2), (1, 2))
with self.assertRaisesRegex(ValueError, 'unexpected field name'):
copy.replace(p, x=1, error=2)
self.copy_module.replace(p, x=1, error=2)

def test_dataclass(self):
from dataclasses import dataclass
Expand Down

0 comments on commit 8f6aad7

Please sign in to comment.