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
36193e73
Kaydet (Commit)
36193e73
authored
Ara 11, 2013
tarafından
Zachary Ware
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19828: Fixed test_site when the whole suite is run with -S.
Also, cleaned up an unused import.
üst
d5c4c741
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
test_site.py
Lib/test/test_site.py
+8
-9
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_site.py
Dosyayı görüntüle @
36193e73
...
...
@@ -6,8 +6,7 @@ executing have not been removed.
"""
import
unittest
import
test.support
from
test.support
import
run_unittest
,
TESTFN
,
EnvironmentVarGuard
from
test.support
import
captured_stderr
from
test.support
import
captured_stderr
,
TESTFN
,
EnvironmentVarGuard
import
builtins
import
os
import
sys
...
...
@@ -19,13 +18,13 @@ import subprocess
import
sysconfig
from
copy
import
copy
#
Need to make sure to not import 'site' if someone specified ``-S`` at the
#
command-line. Detect this by just making sure 'site' has not been import
ed
#
already
.
if
"site"
in
sys
.
modules
:
import
site
else
:
raise
unittest
.
SkipTest
(
"importation of site.py suppressed"
)
#
These tests are not particularly useful if Python was invoked with -S.
#
If you add tests that are useful under -S, this skip should be mov
ed
#
to the class level
.
if
sys
.
flags
.
no_site
:
raise
unittest
.
SkipTest
(
"Python was invoked with -S"
)
import
site
if
site
.
ENABLE_USER_SITE
and
not
os
.
path
.
isdir
(
site
.
USER_SITE
):
# need to add user site directory for tests
...
...
Misc/NEWS
Dosyayı görüntüle @
36193e73
...
...
@@ -130,6 +130,8 @@ IDLE
Tests
-----
- Issue #19828: Fixed test_site when the whole suite is run with -S.
- Issue #19928: Implemented a test for repr() of cell objects.
- Issue #19535: Fixed test_docxmlrpc when python is run with -OO.
...
...
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