Skip to content

Commit

Permalink
Merge pull request #53 from jajcayn/feature/python3.8
Browse files Browse the repository at this point in the history
Compatibility with python3.8
  • Loading branch information
jajcayn authored Jul 10, 2020
2 parents 2667dd0 + 8ae5f6f commit b5cf45e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: python
python:
- "3.6"
- "3.7"
- "3.8"

install:
- pip install --upgrade -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setuptools.setup(
name="pygpso",
version="0.4.1",
version="0.5",
description="Bayesian optimisation method leveraging Gaussian Processes "
"surrogate",
long_description=long_description,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DummyCallback(GPSOCallback):
class TestBaseCallback(unittest.TestCase):
def test_init(self):
# first test that assertion is raised when callback_type is None
with pytest.raises(AssertionError):
with pytest.raises((AssertionError, TypeError)):
callback = GPSOCallback()
# now test actual callback with properly defined callback_type
callback = DummyCallback()
Expand Down

0 comments on commit b5cf45e

Please sign in to comment.