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
86900a49
Kaydet (Commit)
86900a49
authored
Mar 13, 2019
tarafından
Anthony Sottile
Kaydeden (comit)
Lisa Roach
Mar 13, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix stepping into a frame without a __name__ (GH-12064)
üst
839b925f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
bdb.py
Lib/bdb.py
+2
-0
test_bdb.py
Lib/test/test_bdb.py
+7
-0
2019-02-26-22-41-38.bpo-36130._BnZOo.rst
...S.d/next/Library/2019-02-26-22-41-38.bpo-36130._BnZOo.rst
+2
-0
No files found.
Lib/bdb.py
Dosyayı görüntüle @
86900a49
...
...
@@ -190,6 +190,8 @@ class Bdb:
def
is_skipped_module
(
self
,
module_name
):
"Return True if module_name matches any skip pattern."
if
module_name
is
None
:
# some modules do not have names
return
False
for
pattern
in
self
.
skip
:
if
fnmatch
.
fnmatch
(
module_name
,
pattern
):
return
True
...
...
Lib/test/test_bdb.py
Dosyayı görüntüle @
86900a49
...
...
@@ -730,6 +730,13 @@ class StateTestCase(BaseTestCase):
with
TracerRun
(
self
,
skip
=
skip
)
as
tracer
:
tracer
.
runcall
(
tfunc_import
)
def
test_skip_with_no_name_module
(
self
):
# some frames have `globals` with no `__name__`
# for instance the second frame in this traceback
# exec(compile('raise ValueError()', '', 'exec'), {})
bdb
=
Bdb
(
skip
=
[
'anything*'
])
self
.
assertIs
(
bdb
.
is_skipped_module
(
None
),
False
)
def
test_down
(
self
):
# Check that set_down() raises BdbError at the newest frame.
self
.
expect_set
=
[
...
...
Misc/NEWS.d/next/Library/2019-02-26-22-41-38.bpo-36130._BnZOo.rst
0 → 100644
Dosyayı görüntüle @
86900a49
Fix ``pdb`` with ``skip=...`` when stepping into a frame without a
``__name__`` global. Patch by Anthony Sottile.
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