pyfrc
pyfrc copied to clipboard
python3 library designed to make developing RobotPy-based code easier!
### Problem description We very occasionally hit an `AssertionError` here: https://github.com/robotpy/pyfrc/blob/bc9ecadb8186e23f2a5240581d2c8d47e8e919c7/pyfrc/test_support/controller.py#L73-L75 So I am now dutifully following the instruction in that code comment. We most recently hit this in CI....
### Problem description The basic tests only simulate the unknown alliance station. I expected them to simulate real alliance stations. ### Operating System Windows, MacOS, Linux ### Installed Python Packages...
### Problem description This bug would be resolved if issue #230 was resolved. Filing it in case there is a fast fix for this specific issue. When running `robotpy test`...
Managing vendor code is becoming untenable, maybe we should launch the robot code from scratch each time instead of reusing the same interpreter. This wasn't previously possible, but now that...
I think what's happening is that when pytest is processing the exception, the traceback holds references to local objects (including the robot) and so the robot and related objects (in...
https://github.com/robotpy/pyfrc/blob/9959bff71165ea74d1df018c1fb496bcb2aeafe8/pyfrc/physics/core.py#L50 https://docs.python.org/3/library/typing.html#typing.Protocol
### Problem description `robotpy profiler sim` doesn't profile robot code, as it only profiles the process main thread, not the robot main thread. ### Operating System Windows, MacOS, Linux ###...
### Problem description In `controller.py`, line 70, there are assertions which assume robot code completes in a certain time duration. This is generally ok, but isn't a true assumption if...
pyflakes only detects things that are actually code errors (well... mostly), and it's pretty fast. Should add this in the future. I think I would have it separate from the...
### Problem description Running tests with the `pytest-xdist` plugin fails with errors: ``` [gw0] darwin -- Python 3.10.9 /.../bin/python3 file ~/dev/frc/robotpy/pyfrc/pyfrc/tests/basic.py, line 35 @pytest.mark.filterwarnings("ignore") def test_disabled(control: "TestController", robot): E fixture...