File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
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 }}
Original file line number Diff line number Diff 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
2924include_package_data = True
3025packages = find:
3126install_requires =
32- pyntcore>=2023.2.1.4
33- wpilib>=2023.2.1,<2024
27+ wpilib>=2024.0.0b2.post1,<2025
3428setup_requires =
3529 setuptools_scm > 6
3630python_requires = >=3.7
Original file line number Diff line number Diff 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
380382def test_forbidden_state_names ():
You can’t perform that action at this time.
0 commit comments