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
de0b9629
Kaydet (Commit)
de0b9629
authored
Kas 18, 2012
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove sys.platform == 'riscos' checks from some Python and test files. #16501
üst
8473e574
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
14 deletions
+4
-14
site.py
Lib/site.py
+1
-3
sysconfig.py
Lib/sysconfig.py
+0
-1
test_select.py
Lib/test/test_select.py
+1
-1
test_signal.py
Lib/test/test_signal.py
+0
-3
test_site.py
Lib/test/test_site.py
+1
-5
test_threadsignals.py
Lib/test/test_threadsignals.py
+1
-1
No files found.
Lib/site.py
Dosyayı görüntüle @
de0b9629
...
...
@@ -300,9 +300,7 @@ def getsitepackages(prefixes=None):
continue
seen
.
add
(
prefix
)
if
sys
.
platform
==
'riscos'
:
sitepackages
.
append
(
os
.
path
.
join
(
prefix
,
"Lib"
,
"site-packages"
))
elif
os
.
sep
==
'/'
:
if
os
.
sep
==
'/'
:
sitepackages
.
append
(
os
.
path
.
join
(
prefix
,
"lib"
,
"python"
+
sys
.
version
[:
3
],
"site-packages"
))
...
...
Lib/sysconfig.py
Dosyayı görüntüle @
de0b9629
...
...
@@ -191,7 +191,6 @@ def _getuserbase():
def
joinuser
(
*
args
):
return
os
.
path
.
expanduser
(
os
.
path
.
join
(
*
args
))
# what about 'riscos' ?
if
os
.
name
==
"nt"
:
base
=
os
.
environ
.
get
(
"APPDATA"
)
or
"~"
if
env_base
:
...
...
Lib/test/test_select.py
Dosyayı görüntüle @
de0b9629
...
...
@@ -5,7 +5,7 @@ import sys
import
unittest
from
test
import
support
@unittest.skipIf
((
sys
.
platform
[:
3
]
==
'win'
)
or
(
sys
.
platform
==
'riscos'
)
,
@unittest.skipIf
((
sys
.
platform
[:
3
]
==
'win'
),
"can't easily test on this system"
)
class
SelectTestCase
(
unittest
.
TestCase
):
...
...
Lib/test/test_signal.py
Dosyayı görüntüle @
de0b9629
...
...
@@ -15,9 +15,6 @@ try:
except
ImportError
:
threading
=
None
if
sys
.
platform
==
'riscos'
:
raise
unittest
.
SkipTest
(
"Can't test signal on
%
s"
%
sys
.
platform
)
class
HandlerBCalled
(
Exception
):
pass
...
...
Lib/test/test_site.py
Dosyayı görüntüle @
de0b9629
...
...
@@ -222,11 +222,7 @@ class HelperFunctionsTests(unittest.TestCase):
site
.
PREFIXES
=
[
'xoxo'
]
dirs
=
site
.
getsitepackages
()
if
sys
.
platform
==
'riscos'
:
self
.
assertEqual
(
len
(
dirs
),
1
)
wanted
=
os
.
path
.
join
(
'xoxo'
,
'Lib'
,
'site-packages'
)
self
.
assertEqual
(
dirs
[
0
],
wanted
)
elif
(
sys
.
platform
==
"darwin"
and
if
(
sys
.
platform
==
"darwin"
and
sysconfig
.
get_config_var
(
"PYTHONFRAMEWORK"
)):
# OS X framework builds
site
.
PREFIXES
=
[
'Python.framework'
]
...
...
Lib/test/test_threadsignals.py
Dosyayı görüntüle @
de0b9629
...
...
@@ -8,7 +8,7 @@ from test.support import run_unittest, import_module
thread
=
import_module
(
'_thread'
)
import
time
if
(
sys
.
platform
[:
3
]
==
'win'
)
or
(
sys
.
platform
==
'riscos'
)
:
if
(
sys
.
platform
[:
3
]
==
'win'
):
raise
unittest
.
SkipTest
(
"Can't test signal on
%
s"
%
sys
.
platform
)
process_pid
=
os
.
getpid
()
...
...
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