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
c13acb18
Kaydet (Commit)
c13acb18
authored
Ara 29, 2008
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixed #4646 : distutils was choking on empty options arg in the setup function.
üst
fc5a8543
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
dist.py
Lib/distutils/dist.py
+1
-1
test_dist.py
Lib/distutils/tests/test_dist.py
+24
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/dist.py
Dosyayı görüntüle @
c13acb18
...
...
@@ -235,7 +235,7 @@ Common commands: (see '--help-commands' for more)
# command options will override any supplied redundantly
# through the general options dictionary.
options
=
attrs
.
get
(
'options'
)
if
options
:
if
options
is
not
None
:
del
attrs
[
'options'
]
for
(
command
,
cmd_options
)
in
options
.
items
():
opt_dict
=
self
.
get_option_dict
(
command
)
...
...
Lib/distutils/tests/test_dist.py
Dosyayı görüntüle @
c13acb18
...
...
@@ -8,6 +8,7 @@ import os
import
StringIO
import
sys
import
unittest
import
warnings
from
test.test_support
import
TESTFN
...
...
@@ -131,6 +132,29 @@ class DistributionTestCase(unittest.TestCase):
if
os
.
path
.
exists
(
my_file
):
os
.
remove
(
my_file
)
def
test_empty_options
(
self
):
# an empty options dictionary should not stay in the
# list of attributes
klass
=
distutils
.
dist
.
Distribution
# catching warnings
warns
=
[]
def
_warn
(
msg
):
warns
.
append
(
msg
)
old_warn
=
warnings
.
warn
warnings
.
warn
=
_warn
try
:
dist
=
klass
(
attrs
=
{
'author'
:
'xxx'
,
'name'
:
'xxx'
,
'version'
:
'xxx'
,
'url'
:
'xxxx'
,
'options'
:
{}})
finally
:
warnings
.
warn
=
old_warn
self
.
assertEquals
(
len
(
warns
),
0
)
class
MetadataTestCase
(
unittest
.
TestCase
):
def
test_simple_metadata
(
self
):
...
...
Misc/NEWS
Dosyayı görüntüle @
c13acb18
...
...
@@ -97,6 +97,9 @@ Core and Builtins
Library
-------
- Issue #4646: distutils was choking on empty options arg in the setup
function. Original patch by Thomas Heller.
- Issue #3767: Convert Tk object to string in tkColorChooser.
- Issue #3248: Allow placing ScrolledText in a PanedWindow.
...
...
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