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
f527277b
Kaydet (Commit)
f527277b
authored
Şub 26, 2012
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Branch merge
üst
4342722f
845a7720
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
4 deletions
+47
-4
logging.rst
Doc/library/logging.rst
+1
-1
test_sdist.py
Lib/distutils/tests/test_sdist.py
+2
-1
test_tools.py
Lib/test/test_tools.py
+39
-0
NEWS
Misc/NEWS
+3
-0
_iomodule.c
Modules/_io/_iomodule.c
+1
-1
textio.c
Modules/_io/textio.c
+1
-1
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
f527277b
...
...
@@ -1077,7 +1077,7 @@ with the :mod:`warnings` module.
If
*
capture
*
is
``
True
``,
warnings
issued
by
the
:
mod
:`
warnings
`
module
will
be
redirected
to
the
logging
system
.
Specifically
,
a
warning
will
be
formatted
using
:
func
:`
warnings
.
formatwarning
`
and
the
resulting
string
logged
to
a
logger
named
``
'py.warnings'
``
with
a
severity
of
``
'WARNING'
`
`.
logged
to
a
logger
named
``
'py.warnings'
``
with
a
severity
of
:
const
:`
WARNING
`.
If
*
capture
*
is
``
False
``,
the
redirection
of
warnings
to
the
logging
system
will
stop
,
and
warnings
will
be
redirected
to
their
original
destinations
...
...
Lib/distutils/tests/test_sdist.py
Dosyayı görüntüle @
f527277b
...
...
@@ -6,6 +6,7 @@ import warnings
import
zipfile
from
os.path
import
join
from
textwrap
import
dedent
from
test.support
import
captured_stdout
,
check_warnings
,
run_unittest
try
:
import
zlib
...
...
@@ -13,7 +14,6 @@ try:
except
ImportError
:
ZLIB_SUPPORT
=
False
from
test.support
import
captured_stdout
,
check_warnings
,
run_unittest
from
distutils.command.sdist
import
sdist
,
show_formats
from
distutils.core
import
Distribution
...
...
@@ -326,6 +326,7 @@ class SDistTestCase(PyPIRCCommandTestCase):
# filling data_files by pointing files in package_data
dist
.
package_data
=
{
'somecode'
:
[
'*.txt'
]}
self
.
write_file
((
self
.
tmp_dir
,
'somecode'
,
'doc.txt'
),
'#'
)
cmd
.
formats
=
[
'gztar'
]
cmd
.
ensure_finalized
()
cmd
.
run
()
...
...
Lib/test/test_tools.py
0 → 100644
Dosyayı görüntüle @
f527277b
"""Tests for scripts in the Tools directory.
This file contains regression tests for some of the scripts found in the
Tools directory of a Python checkout or tarball, such as reindent.py.
"""
import
os
import
unittest
import
sysconfig
from
test
import
support
from
test.script_helper
import
assert_python_ok
if
not
sysconfig
.
is_python_build
():
# XXX some installers do contain the tools, should we detect that
# and run the tests in that case too?
raise
unittest
.
SkipTest
(
'test irrelevant for an installed Python'
)
srcdir
=
sysconfig
.
get_config_var
(
'projectbase'
)
basepath
=
os
.
path
.
join
(
os
.
getcwd
(),
srcdir
,
'Tools'
)
class
ReindentTests
(
unittest
.
TestCase
):
script
=
os
.
path
.
join
(
basepath
,
'scripts'
,
'reindent.py'
)
def
test_noargs
(
self
):
assert_python_ok
(
self
.
script
)
def
test_help
(
self
):
rc
,
out
,
err
=
assert_python_ok
(
self
.
script
,
'-h'
)
self
.
assertEqual
(
out
,
b
''
)
self
.
assertGreater
(
err
,
b
''
)
def
test_main
():
support
.
run_unittest
(
ReindentTests
)
if
__name__
==
'__main__'
:
unittest
.
main
()
Misc/NEWS
Dosyayı görüntüle @
f527277b
...
...
@@ -124,6 +124,9 @@ Core and Builtins
Library
-------
- Issue #13447: Add a test file to host regression tests for bugs in the
scripts found in the Tools directory.
- Issue #6884: Fix long-standing bugs with MANIFEST.in parsing in distutils
on Windows.
...
...
Modules/_io/_iomodule.c
Dosyayı görüntüle @
f527277b
...
...
@@ -58,7 +58,7 @@ PyDoc_STRVAR(module_doc,
"
\n
"
"At the top of the I/O hierarchy is the abstract base class IOBase. It
\n
"
"defines the basic interface to a stream. Note, however, that there is no
\n
"
"sep
e
ration between reading and writing to streams; implementations are
\n
"
"sep
a
ration between reading and writing to streams; implementations are
\n
"
"allowed to throw an IOError if they do not support a given operation.
\n
"
"
\n
"
"Extending IOBase is RawIOBase which deals simply with the reading and
\n
"
...
...
Modules/_io/textio.c
Dosyayı görüntüle @
f527277b
...
...
@@ -627,7 +627,7 @@ PyDoc_STRVAR(textiowrapper_doc,
"enabled. With this enabled, on input, the lines endings '
\\
n', '
\\
r',
\n
"
"or '
\\
r
\\
n' are translated to '
\\
n' before being returned to the
\n
"
"caller. Conversely, on output, '
\\
n' is translated to the system
\n
"
"default line sep
e
rator, os.linesep. If newline is any other of its
\n
"
"default line sep
a
rator, os.linesep. If newline is any other of its
\n
"
"legal values, that newline becomes the newline when the file is read
\n
"
"and it is returned untranslated. On output, '
\\
n' is converted to the
\n
"
"newline.
\n
"
...
...
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