Skip to content

Fix tests - #430

Merged
mihaic merged 9 commits into
brainiak:masterfrom
mihaic:fix-pytest
Aug 14, 2019
Merged

Fix tests#430
mihaic merged 9 commits into
brainiak:masterfrom
mihaic:fix-pytest

Conversation

@mihaic

@mihaic mihaic commented Aug 5, 2019

Copy link
Copy Markdown
Member

@mihaic

mihaic commented Aug 12, 2019

Copy link
Copy Markdown
Member Author

@brainiak/committers, please review.

The changes are unrelated to each other, but all necessary to have the tests pass again.

@mihaic

mihaic commented Aug 12, 2019

Copy link
Copy Markdown
Member Author

@mihaic

mihaic commented Aug 14, 2019

Copy link
Copy Markdown
Member Author

@danielsuo, @gdoubleyew, any chance you could review?

with pytest.raises(ValueError):
es_invalid.model_prior(K-1)
with pytest.raises(ValueError, message="#Events < K should cause error"):
pytest.fail("T < K should cause error")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't obvious to me why adding pytest.fail() here or how that would work until reading the link you added in the commit message.
Maybe add a comment above pytest.fail(), something like:
"If we reach here the expected exception wan't thrown, call pytest.fail() to display custom message"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread .conda/build.sh
@@ -1,13 +1,5 @@
#!/bin/bash

if [[ "$OSTYPE" == "darwin"* ]]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this block go away?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MACOSX_DEPLOYMENT_TARGET is set by conda-build based on the SDK we pass. The compiler variables are not used; instead, conda-build installs and uses compilers based on its configuration.

@mihaic
mihaic merged commit e58a442 into brainiak:master Aug 14, 2019
@mihaic
mihaic deleted the fix-pytest branch August 14, 2019 20:57
mihaic added a commit to mihaic/brainiak that referenced this pull request Oct 7, 2019
Overlooked when pinning NumPy in PR brainiak#430.
mihaic added a commit that referenced this pull request Oct 7, 2019
Overlooked when pinning NumPy in PR #430.
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

Successfully merging this pull request may close these issues.

2 participants