Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b8cbfc7

Browse files
carlbordummethane
authored andcommittedMar 8, 2019
bpo-30040: new comparison for shared key subclass test
As suggested by Mark Shannon in the GitHub review.
1 parent 5d6db25 commit b8cbfc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎Lib/test/test_descr.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5353,9 +5353,9 @@ class B(A):
53535353
self.assertNotEqual(sys.getsizeof(vars(a)), sys.getsizeof(vars(b)))
53545354
a2 = A()
53555355
self.assertEqual(sys.getsizeof(vars(a)), sys.getsizeof(vars(a2)))
5356-
self.assertLess(sys.getsizeof(vars(a)), sys.getsizeof({}))
5356+
self.assertLess(sys.getsizeof(vars(a)), sys.getsizeof({"a":1}))
53575357
b.u, b.v, b.w, b.t, b.s, b.r = range(6)
5358-
self.assertLess(sys.getsizeof(vars(b)), sys.getsizeof({}))
5358+
self.assertLess(sys.getsizeof(vars(b)), sys.getsizeof({"a":1}))
53595359

53605360

53615361
class DebugHelperMeta(type):

0 commit comments

Comments
 (0)
Please sign in to comment.