]> granicus.if.org Git - python/commitdiff
Fixed typo.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 19 Aug 2014 15:20:23 +0000 (18:20 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 19 Aug 2014 15:20:23 +0000 (18:20 +0300)
Lib/test/test_mmap.py

index fa693f3ffa9088e95998b34fc2c6ea89909aaaa9..4d23f16890793774817617e18561f4c81f45739d 100644 (file)
@@ -645,8 +645,8 @@ class MmapTests(unittest.TestCase):
         m1 = mmap.mmap(-1, 100)
         tagname = "foo"
         m2 = mmap.mmap(-1, 100, tagname=tagname)
-        self.assertEqual(sys.getsize(m2),
-                         sys.getsize(m1) + len(tagname) + 1)
+        self.assertEqual(sys.getsizeof(m2),
+                         sys.getsizeof(m1) + len(tagname) + 1)
 
     @unittest.skipUnless(os.name == 'nt', 'requires Windows')
     def test_crasher_on_windows(self):