Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
87845bcb
Kaydet (Commit)
87845bcb
authored
Eki 06, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge 3.5
üst
a8861423
4c8b2cd1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
test_mmap.py
Lib/test/test_mmap.py
+14
-0
NEWS
Misc/NEWS
+3
-0
mmapmodule.c
Modules/mmapmodule.c
+0
-0
No files found.
Lib/test/test_mmap.py
Dosyayı görüntüle @
87845bcb
...
@@ -720,6 +720,20 @@ class MmapTests(unittest.TestCase):
...
@@ -720,6 +720,20 @@ class MmapTests(unittest.TestCase):
self
.
assertEqual
(
mm
.
write
(
b
"yz"
),
2
)
self
.
assertEqual
(
mm
.
write
(
b
"yz"
),
2
)
self
.
assertEqual
(
mm
.
write
(
b
"python"
),
6
)
self
.
assertEqual
(
mm
.
write
(
b
"python"
),
6
)
@unittest.skipIf
(
os
.
name
==
'nt'
,
'cannot resize anonymous mmaps on Windows'
)
def
test_resize_past_pos
(
self
):
m
=
mmap
.
mmap
(
-
1
,
8192
)
self
.
addCleanup
(
m
.
close
)
m
.
read
(
5000
)
try
:
m
.
resize
(
4096
)
except
SystemError
:
self
.
skipTest
(
"resizing not supported"
)
self
.
assertEqual
(
m
.
read
(
14
),
b
''
)
self
.
assertRaises
(
ValueError
,
m
.
read_byte
)
self
.
assertRaises
(
ValueError
,
m
.
write_byte
,
42
)
self
.
assertRaises
(
ValueError
,
m
.
write
,
b
'abc'
)
class
LargeMmapTests
(
unittest
.
TestCase
):
class
LargeMmapTests
(
unittest
.
TestCase
):
...
...
Misc/NEWS
Dosyayı görüntüle @
87845bcb
...
@@ -404,6 +404,9 @@ Library
...
@@ -404,6 +404,9 @@ Library
pickling and text representation purposes. Patch by Emanuel Barry and
pickling and text representation purposes. Patch by Emanuel Barry and
Serhiy Storchaka.
Serhiy Storchaka.
- Fix possible integer overflows and crashes in the mmap module with unusual
usage patterns.
- Issue #1703178: Fix the ability to pass the --link-objects option to the
- Issue #1703178: Fix the ability to pass the --link-objects option to the
distutils build_ext command.
distutils build_ext command.
...
...
Modules/mmapmodule.c
Dosyayı görüntüle @
87845bcb
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment