self.assertEqual(user_path, expected)
def test_main(self):
+--- Python-3.10.13/Lib/venv/__init__.py.orig 2023-08-24 14:46:25.000000000 +0200
++++ Python-3.10.13/Lib/venv/__init__.py 2023-09-23 12:30:09.948046280 +0200
+@@ -137,10 +137,9 @@ class EnvBuilder:
+ context.inc_path = path = os.path.join(env_dir, incpath)
+ create_if_needed(path)
+ create_if_needed(libpath)
+- # Issue 21197: create lib64 as a symlink to lib on 64-bit non-OS X POSIX
+- if ((sys.maxsize > 2**32) and (os.name == 'posix') and
+- (sys.platform != 'darwin')):
+- link_path = os.path.join(env_dir, 'lib64')
++ # Issue 21197: create lib<qual> as a symlink to lib on 64-bit non-OS X POSIX
++ if sys.platlibdir != 'lib':
++ link_path = os.path.join(env_dir, sys.platlibdir)
+ if not os.path.exists(link_path): # Issue #21643
+ os.symlink('lib', link_path)
+ context.bin_path = binpath = os.path.join(env_dir, binname)