[Python-checkins] cpython (3.4): Fixed typo.

serhiy.storchaka python-checkins at python.org
Tue Aug 19 17:22:08 CEST 2014


http://hg.python.org/cpython/rev/0788d0d6bf85
changeset:   92154:0788d0d6bf85
branch:      3.4
parent:      92151:ca4a22256bf8
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Aug 19 18:20:23 2014 +0300
summary:
  Fixed typo.

files:
  Lib/test/test_mmap.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -645,8 +645,8 @@
         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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list