Skip to content

Commit be4653f

Browse files
authored
Merge pull request #206 from robotpy/2024-beta
Upgrade to 2024 beta
2 parents 0791748 + 3e54fa7 commit be4653f

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

.github/workflows/dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
ci:
14-
uses: robotpy/build-actions/.github/workflows/package-pure.yml@v2023
14+
uses: robotpy/build-actions/.github/workflows/package-pure.yml@v2024
1515
secrets:
1616
META_REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
1717
PYPI_API_TOKEN: ${{ secrets.PYPI_PASSWORD }}

setup.cfg

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ classifiers =
1616
License :: OSI Approved :: BSD License
1717
Operating System :: OS Independent
1818
Programming Language :: Python :: 3 :: Only
19-
Programming Language :: Python :: 3.7
20-
Programming Language :: Python :: 3.8
21-
Programming Language :: Python :: 3.9
22-
Programming Language :: Python :: 3.10
23-
Programming Language :: Python :: 3.11
2419
Topic :: Software Development
2520
Topic :: Scientific/Engineering
2621

@@ -29,8 +24,7 @@ zip_safe = False
2924
include_package_data = True
3025
packages = find:
3126
install_requires =
32-
pyntcore>=2023.2.1.4
33-
wpilib>=2023.2.1,<2024
27+
wpilib>=2024.0.0b2.post1,<2025
3428
setup_requires =
3529
setuptools_scm > 6
3630
python_requires = >=3.7

tests/test_magicbot_sm.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,23 +358,25 @@ def test_mixup():
358358
from robotpy_ext.autonomous import state as _ext_state
359359
from robotpy_ext.autonomous import timed_state as _ext_timed_state
360360

361-
with pytest.raises(RuntimeError) as exc_info:
361+
with pytest.raises((RuntimeError, TypeError)) as exc_info:
362362

363363
class _SM1(StateMachine):
364364
@_ext_state(first=True)
365365
def the_state(self):
366366
pass
367367

368-
assert isinstance(exc_info.value.__cause__, TypeError)
368+
if isinstance(exc_info.value, RuntimeError):
369+
assert isinstance(exc_info.value.__cause__, TypeError)
369370

370-
with pytest.raises(RuntimeError) as exc_info:
371+
with pytest.raises((RuntimeError, TypeError)) as exc_info:
371372

372373
class _SM2(StateMachine):
373374
@_ext_timed_state(first=True, duration=1)
374375
def the_state(self):
375376
pass
376377

377-
assert isinstance(exc_info.value.__cause__, TypeError)
378+
if isinstance(exc_info.value, RuntimeError):
379+
assert isinstance(exc_info.value.__cause__, TypeError)
378380

379381

380382
def test_forbidden_state_names():

0 commit comments

Comments
 (0)