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

Ignore more installed versions of python during tests #923

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

traylenator
Copy link
Contributor

Pull Request (PR) description

The unit tests for python_dir fact were giving a false failure

1) python_dir is empty string if python not installed
   Failure/Error: expect(Facter.fact(:python_dir).value).to eq('')
     expected: ""
          got: "/usr/lib/python2.7/site-packages"
     (compared using ==)

If they were executed on a system where /usr/libexec/platform-python
was present - not the case (presumably) for Travis CI.

@traylenator traylenator added the bug Something isn't working label Mar 20, 2020
The unit tests for python_dir fact were giving a false failure

```
1) python_dir is empty string if python not installed
   Failure/Error: expect(Facter.fact(:python_dir).value).to eq('')
     expected: ""
          got: "/usr/lib/python2.7/site-packages"
     (compared using ==)
```

If they were executed on a system where `/usr/libexec/platform-python`
was present - not the case (presumably) for Travis CI.
@traylenator traylenator changed the title Ignore more installed versions of python during tests WIP: Ignore more installed versions of python during tests Mar 20, 2020
@traylenator traylenator changed the title WIP: Ignore more installed versions of python during tests Ignore more installed versions of python during tests Mar 20, 2020
@bastelfreak bastelfreak merged commit 8c0e6a0 into voxpupuli:master Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants