changeset: 105200:ac6de11fbd50 parent: 105198:fc6f757e53de parent: 105199:2e1fb851dfb4 user: Steve Dower date: Sat Nov 19 20:12:08 2016 -0800 description: Issue #28732: Adds new errors to spawnv emulation for platforms that only have fork and execv diff -r fc6f757e53de -r ac6de11fbd50 Lib/os.py --- a/Lib/os.py Sat Nov 19 19:17:46 2016 -0800 +++ b/Lib/os.py Sat Nov 19 20:12:08 2016 -0800 @@ -832,6 +832,10 @@ def _spawnvef(mode, file, args, env, func): # Internal helper; func is the exec*() function to use + if not isinstance(args, (tuple, list)): + raise TypeError('argv must be a tuple or a list') + if not args[0]: + raise ValueError('argv first element cannot be empty') pid = fork() if not pid: # Child