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

Skip to content

Commit 48e484f

Browse files
committed
Fix test_sysconfig when run from a Python installed under /site (#10086).
Patch by Hallvard B Furuseth.
1 parent e897e95 commit 48e484f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_sysconfig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,14 @@ def get(python):
261261
unlink(link)
262262

263263
def test_user_similar(self):
264-
# Issue 8759 : make sure the posix scheme for the users
264+
# Issue #8759: make sure the posix scheme for the users
265265
# is similar to the global posix_prefix one
266266
base = get_config_var('base')
267267
user = get_config_var('userbase')
268268
for name in ('stdlib', 'platstdlib', 'purelib', 'platlib'):
269269
global_path = get_path(name, 'posix_prefix')
270270
user_path = get_path(name, 'posix_user')
271-
self.assertEqual(user_path, global_path.replace(base, user))
271+
self.assertEqual(user_path, global_path.replace(base, user, 1))
272272

273273
def test_main(self):
274274
# just making sure _main() runs and returns things in the stdout

0 commit comments

Comments
 (0)