Skip to content

Commit

Permalink
Merge pull request #206 from robotpy/2024-beta
Browse files Browse the repository at this point in the history
Upgrade to 2024 beta
  • Loading branch information
virtuald authored Nov 1, 2023
2 parents 0791748 + 3e54fa7 commit be4653f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
ci:
uses: robotpy/build-actions/.github/workflows/package-pure.yml@v2023
uses: robotpy/build-actions/.github/workflows/package-pure.yml@v2024
secrets:
META_REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
PYPI_API_TOKEN: ${{ secrets.PYPI_PASSWORD }}
8 changes: 1 addition & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ classifiers =
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Software Development
Topic :: Scientific/Engineering

Expand All @@ -29,8 +24,7 @@ zip_safe = False
include_package_data = True
packages = find:
install_requires =
pyntcore>=2023.2.1.4
wpilib>=2023.2.1,<2024
wpilib>=2024.0.0b2.post1,<2025
setup_requires =
setuptools_scm > 6
python_requires = >=3.7
Expand Down
10 changes: 6 additions & 4 deletions tests/test_magicbot_sm.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,23 +358,25 @@ def test_mixup():
from robotpy_ext.autonomous import state as _ext_state
from robotpy_ext.autonomous import timed_state as _ext_timed_state

with pytest.raises(RuntimeError) as exc_info:
with pytest.raises((RuntimeError, TypeError)) as exc_info:

class _SM1(StateMachine):
@_ext_state(first=True)
def the_state(self):
pass

assert isinstance(exc_info.value.__cause__, TypeError)
if isinstance(exc_info.value, RuntimeError):
assert isinstance(exc_info.value.__cause__, TypeError)

with pytest.raises(RuntimeError) as exc_info:
with pytest.raises((RuntimeError, TypeError)) as exc_info:

class _SM2(StateMachine):
@_ext_timed_state(first=True, duration=1)
def the_state(self):
pass

assert isinstance(exc_info.value.__cause__, TypeError)
if isinstance(exc_info.value, RuntimeError):
assert isinstance(exc_info.value.__cause__, TypeError)


def test_forbidden_state_names():
Expand Down

0 comments on commit be4653f

Please sign in to comment.