Replace KB unit with KiB (#4293) · python/cpython@8c663fd (original) (raw)
`@@ -564,7 +564,7 @@ def test_raw_bytes_io(self):
`
564
564
``
565
565
`def test_large_file_ops(self):
`
566
566
`# On Windows and Mac OSX this test comsumes large resources; It takes
`
567
``
`-
a long time to build the >2GB file and takes >2GB of disk space
`
``
567
`+
a long time to build the >2 GiB file and takes >2 GiB of disk space
`
568
568
`# therefore the resource must be enabled to run this test.
`
569
569
`if sys.platform[:3] == 'win' or sys.platform == 'darwin':
`
570
570
`support.requires(
`
`@@ -736,7 +736,7 @@ def test_unbounded_file(self):
`
736
736
`if sys.maxsize > 0x7FFFFFFF:
`
737
737
`self.skipTest("test can only run in a 32-bit address space")
`
738
738
`if support.real_max_memuse < support._2G:
`
739
``
`-
self.skipTest("test requires at least 2GB of memory")
`
``
739
`+
self.skipTest("test requires at least 2 GiB of memory")
`
740
740
`with self.open(zero, "rb", buffering=0) as f:
`
741
741
`self.assertRaises(OverflowError, f.read)
`
742
742
`with self.open(zero, "rb") as f:
`
`@@ -1421,7 +1421,7 @@ class CBufferedReaderTest(BufferedReaderTest, SizeofTest):
`
1421
1421
`def test_constructor(self):
`
1422
1422
`BufferedReaderTest.test_constructor(self)
`
1423
1423
`# The allocation can succeed on 32-bit builds, e.g. with more
`
1424
``
`-
than 2GB RAM and a 64-bit kernel.
`
``
1424
`+
than 2 GiB RAM and a 64-bit kernel.
`
1425
1425
`if sys.maxsize > 0x7FFFFFFF:
`
1426
1426
`rawio = self.MockRawIO()
`
1427
1427
`bufio = self.tp(rawio)
`
`@@ -1733,7 +1733,7 @@ class CBufferedWriterTest(BufferedWriterTest, SizeofTest):
`
1733
1733
`def test_constructor(self):
`
1734
1734
`BufferedWriterTest.test_constructor(self)
`
1735
1735
`# The allocation can succeed on 32-bit builds, e.g. with more
`
1736
``
`-
than 2GB RAM and a 64-bit kernel.
`
``
1736
`+
than 2 GiB RAM and a 64-bit kernel.
`
1737
1737
`if sys.maxsize > 0x7FFFFFFF:
`
1738
1738
`rawio = self.MockRawIO()
`
1739
1739
`bufio = self.tp(rawio)
`
`@@ -2206,7 +2206,7 @@ class CBufferedRandomTest(BufferedRandomTest, SizeofTest):
`
2206
2206
`def test_constructor(self):
`
2207
2207
`BufferedRandomTest.test_constructor(self)
`
2208
2208
`# The allocation can succeed on 32-bit builds, e.g. with more
`
2209
``
`-
than 2GB RAM and a 64-bit kernel.
`
``
2209
`+
than 2 GiB RAM and a 64-bit kernel.
`
2210
2210
`if sys.maxsize > 0x7FFFFFFF:
`
2211
2211
`rawio = self.MockRawIO()
`
2212
2212
`bufio = self.tp(rawio)
`