You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix>
run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra=========================================================================== test session starts ============================================================================platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0rootdir: /home/tkloczko/rpmbuild/BUILD/userpath-1.8.0collected 25 itemstests/test_bash.py FFFFF [ 20%]tests/test_fish.py FFFF [ 36%]tests/test_sh.py FFFF [ 52%]tests/test_windows.py ssss [ 68%]tests/test_xonsh.py FFFF [ 84%]tests/test_zsh.py FFFF [100%]================================================================================= FAILURES =================================================================================_________________________________________________________________________ TestDebian.test_prepend __________________________________________________________________________self = <tests.test_bash.TestDebian object at 0x7fd592ff4f10>, request = <FixtureRequest for <Function test_prepend>>, shell_test = None def test_prepend(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.prepend(location, check=True)tests/test_bash.py:19:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592f47190>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/3jt9krY=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/3jt9krY=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_prepend_multiple _____________________________________________________________________self = <tests.test_bash.TestDebian object at 0x7fd592fb4e50>, request = <FixtureRequest for <Function test_prepend_multiple>>, shell_test = None def test_prepend_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.prepend(locations, check=True)tests/test_bash.py:32:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592feb220>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/av3cTA0=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/av3cTA0=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception______________________________________________________________________ TestDebian.test_prepend_twice _______________________________________________________________________self = <tests.test_bash.TestDebian object at 0x7fd592fb4dc0>, request = <FixtureRequest for <Function test_prepend_twice>>, shell_test = None def test_prepend_twice(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.prepend(location, check=True)tests/test_bash.py:45:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fa44f0>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/F2C2Eos=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/F2C2Eos=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception__________________________________________________________________________ TestDebian.test_append __________________________________________________________________________self = <tests.test_bash.TestDebian object at 0x7fd592fb44f0>, request = <FixtureRequest for <Function test_append>>, shell_test = None def test_append(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.append(location, check=True)tests/test_bash.py:61:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fc9b80>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/Tugt0GM=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/Tugt0GM=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_append_multiple ______________________________________________________________________self = <tests.test_bash.TestDebian object at 0x7fd592fb4460>, request = <FixtureRequest for <Function test_append_multiple>>, shell_test = None def test_append_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.append(locations, check=True)tests/test_bash.py:74:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592f198e0>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/4bYRw_U=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/4bYRw_U=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_________________________________________________________________________ TestDebian.test_prepend __________________________________________________________________________self = <tests.test_fish.TestDebian object at 0x7fd592f19cd0>, request = <FixtureRequest for <Function test_prepend>>, shell_test = None def test_prepend(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.prepend(location, check=True)tests/test_fish.py:19:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fb6d60>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/yHxp5WA=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/yHxp5WA=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_prepend_multiple _____________________________________________________________________self = <tests.test_fish.TestDebian object at 0x7fd592f191c0>, request = <FixtureRequest for <Function test_prepend_multiple>>, shell_test = None def test_prepend_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.prepend(locations, check=True)tests/test_fish.py:32:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592feb6a0>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/5aRzOJA=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/5aRzOJA=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception__________________________________________________________________________ TestDebian.test_append __________________________________________________________________________self = <tests.test_fish.TestDebian object at 0x7fd592f190a0>, request = <FixtureRequest for <Function test_append>>, shell_test = None def test_append(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.append(location, check=True)tests/test_fish.py:45:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592f47bb0>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/oRoBMnw=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/oRoBMnw=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_append_multiple ______________________________________________________________________self = <tests.test_fish.TestDebian object at 0x7fd592f19c10>, request = <FixtureRequest for <Function test_append_multiple>>, shell_test = None def test_append_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.append(locations, check=True)tests/test_fish.py:58:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592f28bb0>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/PmF9l3s=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/PmF9l3s=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_________________________________________________________________________ TestDebian.test_prepend __________________________________________________________________________self = <tests.test_sh.TestDebian object at 0x7fd592febdc0>, request = <FixtureRequest for <Function test_prepend>>, shell_test = None def test_prepend(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.prepend(location, check=True)tests/test_sh.py:19:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fa0b20>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/QER_y2M=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/QER_y2M=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_prepend_multiple _____________________________________________________________________self = <tests.test_sh.TestDebian object at 0x7fd592febb20>, request = <FixtureRequest for <Function test_prepend_multiple>>, shell_test = None def test_prepend_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.prepend(locations, check=True)tests/test_sh.py:32:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592f9fb80>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/39B77Cw=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/39B77Cw=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception__________________________________________________________________________ TestDebian.test_append __________________________________________________________________________self = <tests.test_sh.TestDebian object at 0x7fd592feb370>, request = <FixtureRequest for <Function test_append>>, shell_test = None def test_append(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.append(location, check=True)tests/test_sh.py:45:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fc9be0>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/4G9389E=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/4G9389E=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_append_multiple ______________________________________________________________________self = <tests.test_sh.TestDebian object at 0x7fd592feb970>, request = <FixtureRequest for <Function test_append_multiple>>, shell_test = None def test_append_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.append(locations, check=True)tests/test_sh.py:58:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fa4a00>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/SJhP_Ek=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/SJhP_Ek=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_________________________________________________________________________ TestDebian.test_prepend __________________________________________________________________________self = <tests.test_xonsh.TestDebian object at 0x7fd592f77040>, request = <FixtureRequest for <Function test_prepend>>, shell_test = None def test_prepend(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.prepend(location, check=True)tests/test_xonsh.py:19:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592febc40>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/sX8Ur2Y=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/sX8Ur2Y=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_prepend_multiple _____________________________________________________________________self = <tests.test_xonsh.TestDebian object at 0x7fd592f77220>, request = <FixtureRequest for <Function test_prepend_multiple>>, shell_test = None def test_prepend_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.prepend(locations, check=True)tests/test_xonsh.py:32:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fce910>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/z2XRGQo=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/z2XRGQo=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception__________________________________________________________________________ TestDebian.test_append __________________________________________________________________________self = <tests.test_xonsh.TestDebian object at 0x7fd592f77a60>, request = <FixtureRequest for <Function test_append>>, shell_test = None def test_append(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.append(location, check=True)tests/test_xonsh.py:45:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fc9280>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/pItOGWY=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/pItOGWY=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_append_multiple ______________________________________________________________________self = <tests.test_xonsh.TestDebian object at 0x7fd592f77eb0>, request = <FixtureRequest for <Function test_append_multiple>>, shell_test = None def test_append_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.append(locations, check=True)tests/test_xonsh.py:58:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592f9f4f0>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/gSY9wC0=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/gSY9wC0=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_________________________________________________________________________ TestDebian.test_prepend __________________________________________________________________________self = <tests.test_zsh.TestDebian object at 0x7fd592f47a30>, request = <FixtureRequest for <Function test_prepend>>, shell_test = None def test_prepend(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.prepend(location, check=True)tests/test_zsh.py:19:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592ed6fa0>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/v-GXFYU=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/v-GXFYU=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_prepend_multiple _____________________________________________________________________self = <tests.test_zsh.TestDebian object at 0x7fd592f47f40>, request = <FixtureRequest for <Function test_prepend_multiple>>, shell_test = None def test_prepend_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.prepend(locations, check=True)tests/test_zsh.py:32:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:7: in prepend return interface.put(location, front=True, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fff280>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/eSUHTog=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/eSUHTog=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception__________________________________________________________________________ TestDebian.test_append __________________________________________________________________________self = <tests.test_zsh.TestDebian object at 0x7fd592f47d00>, request = <FixtureRequest for <Function test_append>>, shell_test = None def test_append(self, request, shell_test): if shell_test is None: location = get_random_path() assert not userpath.in_current_path(location)
> assert userpath.append(location, check=True)tests/test_zsh.py:45:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592fa0550>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/MBU3dLs=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/MBU3dLs=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception_____________________________________________________________________ TestDebian.test_append_multiple ______________________________________________________________________self = <tests.test_zsh.TestDebian object at 0x7fd592f47c70>, request = <FixtureRequest for <Function test_append_multiple>>, shell_test = None def test_append_multiple(self, request, shell_test): if shell_test is None: locations = [get_random_path(), get_random_path()] assert not userpath.in_current_path(locations)
> assert userpath.append(locations, check=True)tests/test_zsh.py:58:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _userpath/core.py:12: in append return interface.put(location, front=False, app_name=app_name, check=check)userpath/interface.py:159: in put return self.location_in_new_path(location, check=check)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _self = <userpath.interface.Interface object at 0x7fd592f19b50>, location = '/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/1TzuCqc=', check = True def location_in_new_path(self, location, check=False): locations = normpath(location).split(os.pathsep) for shell in self.shells_to_verify: for show_path_command in shell.show_path_commands(): new_path = get_flat_output(show_path_command) for location in locations: if not location_in_path(location, new_path): if check:
> raise Exception( 'Unable to find `{}` in the output of `{}`:\n{}'.format( location, show_path_command, new_path ) )E Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/1TzuCqc=` in the output of `['bash', '-i', '-c', 'echo $PATH']`:E /home/tkloczko/rpmbuild/BUILDROOT/python-userpath-1.8.0-8.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbinuserpath/interface.py:119: Exception========================================================================= short test summary info ==========================================================================SKIPPED [1] tests/test_windows.py:9: Tests only for throwaway Windows VMs on CISKIPPED [1] tests/test_windows.py:17: Tests only for throwaway Windows VMs on CISKIPPED [1] tests/test_windows.py:25: Tests only for throwaway Windows VMs on CISKIPPED [1] tests/test_windows.py:33: Tests only for throwaway Windows VMs on CIFAILED tests/test_bash.py::TestDebian::test_prepend - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/3jt9krY=` in the output of `['bash', '-i', ...FAILED tests/test_bash.py::TestDebian::test_prepend_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/av3cTA0=` in the output of `['bash...FAILED tests/test_bash.py::TestDebian::test_prepend_twice - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/F2C2Eos=` in the output of `['bash', ...FAILED tests/test_bash.py::TestDebian::test_append - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/Tugt0GM=` in the output of `['bash', '-i', '...FAILED tests/test_bash.py::TestDebian::test_append_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/4bYRw_U=` in the output of `['bash'...FAILED tests/test_fish.py::TestDebian::test_prepend - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/yHxp5WA=` in the output of `['bash', '-i', ...FAILED tests/test_fish.py::TestDebian::test_prepend_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/5aRzOJA=` in the output of `['bash...FAILED tests/test_fish.py::TestDebian::test_append - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/oRoBMnw=` in the output of `['bash', '-i', '...FAILED tests/test_fish.py::TestDebian::test_append_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/PmF9l3s=` in the output of `['bash'...FAILED tests/test_sh.py::TestDebian::test_prepend - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/QER_y2M=` in the output of `['bash', '-i', '-...FAILED tests/test_sh.py::TestDebian::test_prepend_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/39B77Cw=` in the output of `['bash',...FAILED tests/test_sh.py::TestDebian::test_append - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/4G9389E=` in the output of `['bash', '-i', '-c...FAILED tests/test_sh.py::TestDebian::test_append_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/SJhP_Ek=` in the output of `['bash', ...FAILED tests/test_xonsh.py::TestDebian::test_prepend - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/sX8Ur2Y=` in the output of `['bash', '-i',...FAILED tests/test_xonsh.py::TestDebian::test_prepend_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/z2XRGQo=` in the output of `['bas...FAILED tests/test_xonsh.py::TestDebian::test_append - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/pItOGWY=` in the output of `['bash', '-i', ...FAILED tests/test_xonsh.py::TestDebian::test_append_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/gSY9wC0=` in the output of `['bash...FAILED tests/test_zsh.py::TestDebian::test_prepend - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/v-GXFYU=` in the output of `['bash', '-i', '...FAILED tests/test_zsh.py::TestDebian::test_prepend_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/eSUHTog=` in the output of `['bash'...FAILED tests/test_zsh.py::TestDebian::test_append - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/MBU3dLs=` in the output of `['bash', '-i', '-...FAILED tests/test_zsh.py::TestDebian::test_append_multiple - Exception: Unable to find `/home/tkloczko/rpmbuild/BUILD/userpath-1.8.0/1TzuCqc=` in the output of `['bash',...====================================================================== 21 failed, 4 skipped in 3.94s =======================================================================
The text was updated successfully, but these errors were encountered:
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesHere is pytest output:
The text was updated successfully, but these errors were encountered: