Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de0b962

Browse files
committed
Remove sys.platform == 'riscos' checks from some Python and test files. #16501
1 parent 8473e57 commit de0b962

6 files changed

Lines changed: 4 additions & 14 deletions

File tree

Lib/site.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,7 @@ def getsitepackages(prefixes=None):
300300
continue
301301
seen.add(prefix)
302302

303-
if sys.platform == 'riscos':
304-
sitepackages.append(os.path.join(prefix, "Lib", "site-packages"))
305-
elif os.sep == '/':
303+
if os.sep == '/':
306304
sitepackages.append(os.path.join(prefix, "lib",
307305
"python" + sys.version[:3],
308306
"site-packages"))

Lib/sysconfig.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ def _getuserbase():
191191
def joinuser(*args):
192192
return os.path.expanduser(os.path.join(*args))
193193

194-
# what about 'riscos' ?
195194
if os.name == "nt":
196195
base = os.environ.get("APPDATA") or "~"
197196
if env_base:

Lib/test/test_select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import unittest
66
from test import support
77

8-
@unittest.skipIf((sys.platform[:3]=='win') or (sys.platform=='riscos'),
8+
@unittest.skipIf((sys.platform[:3]=='win'),
99
"can't easily test on this system")
1010
class SelectTestCase(unittest.TestCase):
1111

Lib/test/test_signal.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
except ImportError:
1616
threading = None
1717

18-
if sys.platform == 'riscos':
19-
raise unittest.SkipTest("Can't test signal on %s" % sys.platform)
20-
2118

2219
class HandlerBCalled(Exception):
2320
pass

Lib/test/test_site.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,7 @@ def test_getsitepackages(self):
222222
site.PREFIXES = ['xoxo']
223223
dirs = site.getsitepackages()
224224

225-
if sys.platform == 'riscos':
226-
self.assertEqual(len(dirs), 1)
227-
wanted = os.path.join('xoxo', 'Lib', 'site-packages')
228-
self.assertEqual(dirs[0], wanted)
229-
elif (sys.platform == "darwin" and
225+
if (sys.platform == "darwin" and
230226
sysconfig.get_config_var("PYTHONFRAMEWORK")):
231227
# OS X framework builds
232228
site.PREFIXES = ['Python.framework']

Lib/test/test_threadsignals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
thread = import_module('_thread')
99
import time
1010

11-
if (sys.platform[:3] == 'win') or (sys.platform=='riscos'):
11+
if (sys.platform[:3] == 'win'):
1212
raise unittest.SkipTest("Can't test signal on %s" % sys.platform)
1313

1414
process_pid = os.getpid()

0 commit comments

Comments
 (0)