Skip to content

Commit 29620d0

Browse files
committed
sysconfig: fix test_get_platform
1 parent 7ab2d99 commit 29620d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_sysconfig.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,16 @@ def test_get_platform(self):
251251
sys.version = ('2.4.4 (#71, Oct 18 2006, 08:34:43) '
252252
'[MSC v.1310 32 bit (Intel)]')
253253
sys.platform = 'win32'
254-
self.assertEqual(get_platform(), 'win32')
254+
if not sys._is_mingw:
255+
self.assertEqual(get_platform(), 'win32')
255256

256257
# windows XP, amd64
257258
os.name = 'nt'
258259
sys.version = ('2.4.4 (#71, Oct 18 2006, 08:34:43) '
259260
'[MSC v.1310 32 bit (Amd64)]')
260261
sys.platform = 'win32'
261-
self.assertEqual(get_platform(), 'win-amd64')
262+
if not sys._is_mingw:
263+
self.assertEqual(get_platform(), 'win-amd64')
262264

263265
# macbook
264266
os.name = 'posix'

0 commit comments

Comments
 (0)