Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_info fails on macos #161

Open
idbrii opened this issue Nov 24, 2020 · 0 comments
Open

test_info fails on macos #161

idbrii opened this issue Nov 24, 2020 · 0 comments

Comments

@idbrii
Copy link

idbrii commented Nov 24, 2020

test_info has this assert:

            self.assertEqual(
                info['entry_path'],
                '.')

which causes this failure on macOS 10.15.7:

|| AssertionError: '/var/folders/nn/60mn72f90kj5f2pf9x1sx9s00000gn/T/tmp9yvxsh56' != '.'
|| - /var/folders/nn/60mn72f90kj5f2pf9x1sx9s00000gn/T/tmp9yvxsh56
|| + .

The reason is clearer when using absolute paths:

            self.assertEqual(
                os.path.realpath(os.path.abspath(info['entry_path'])),
                os.path.realpath(os.path.abspath('.')))
|| AssertionError: 'file:///private/var/folders/nn/60mn72f90kj5f2pf9x1sx9s00000gn/T/tmplwu2veti' != 'file:///var/folders/nn/60mn72f90kj5f2pf9x1sx9s00000gn/T/tmplwu2veti'
|| - file:///private/var/folders/nn/60mn72f90kj5f2pf9x1sx9s00000gn/T/tmplwu2veti
|| ?        --------
|| + file:///var/folders/nn/60mn72f90kj5f2pf9x1sx9s00000gn/T/tmplwu2veti

Not sure if that private folder a macos-specific thing. I'm not entirely sure what's wrong and causing different paths or how to prevent it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant