Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ before_cache:
fi
- rm -rf ~/.cargo/registry/src

matrix:
jobs:
fast_finish: true
include:
- name: Run Rust tests(linux)
Expand Down Expand Up @@ -42,7 +42,7 @@ matrix:
# installing rust ourselves is a lot easier than installing Python)
- name: Python test snippets
language: python
python: 3.6
python: 3.8
cache:
- pip
- cargo
Expand Down Expand Up @@ -76,7 +76,7 @@ matrix:

- name: Lint Python code with flake8
language: python
python: 3.6
python: 3.8
cache: pip
env: JOBCACHE=9
install: pip install flake8
Expand Down Expand Up @@ -134,7 +134,7 @@ matrix:

- name: Code Coverage
language: python
python: 3.6
python: 3.8
cache:
- pip
- cargo
Expand Down
1 change: 0 additions & 1 deletion tests/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ pytest = "*"
[dev-packages]

[requires]
python_version = "3.6"
6 changes: 5 additions & 1 deletion tests/snippets/math_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@
assert_raises(TypeError, pow, 2, 4, 5.0)
assert_raises(TypeError, pow, 2, 4.0, 5)
assert_raises(TypeError, pow, 2.0, 4, 5)
assert_raises(ValueError, pow, 2, -1, 5)
from sys import version_info
if version_info < (3, 8):
assert_raises(ValueError, pow, 2, -1, 5)
else: # https://docs.python.org/3/whatsnew/3.8.html#other-language-changes
assert pow(2, -1, 5) == 3
assert_raises(ValueError, pow, 2, 2, 0)

# bitwise
Expand Down