Skip to content

Commit caa9029

Browse files
committed
Fix warnings generated when running pytest:
1. pytest.mark.slow is not defined 2. Unsupported escape sequence `\_` in comments 3. Prevent test_sbp2json_unbuffered() from failing once and then passing the second time 4. User warning triggered when attempting to import sbp.jit
1 parent 76041e5 commit caa9029

File tree

12 files changed

+17
-47
lines changed

12 files changed

+17
-47
lines changed

c/include/libsbp/signing/MSG_ECDSA_SIGNATURE.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extern "C" {
4545
*/
4646
typedef struct {
4747
/**
48-
* Describes the format of the `signed\_messages` field below.
48+
* Describes the format of the `signed_messages` field below.
4949
*/
5050
u8 flags;
5151

c/include/libsbp/signing/MSG_ECDSA_SIGNATURE_DEP_A.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern "C" {
4444
*/
4545
typedef struct {
4646
/**
47-
* Describes the format of the `signed\_messages` field below.
47+
* Describes the format of the `signed_messages` field below.
4848
*/
4949
u8 flags;
5050

c/include/libsbp/signing/MSG_ECDSA_SIGNATURE_DEP_B.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern "C" {
4444
*/
4545
typedef struct {
4646
/**
47-
* Describes the format of the `signed\_messages` field below.
47+
* Describes the format of the `signed_messages` field below.
4848
*/
4949
u8 flags;
5050

python/docs/source/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Messages:
7171
sbp.flash
7272
sbp.gnss
7373
sbp.imu
74+
sbp.integrity
7475
sbp.linux
7576
sbp.logging
7677
sbp.mag
@@ -81,9 +82,11 @@ Messages:
8182
sbp.piksi
8283
sbp.sbas
8384
sbp.settings
85+
sbp.signing
8486
sbp.solution_meta
8587
sbp.ssr
8688
sbp.system
89+
sbp.telemetry
8790
sbp.tracking
8891
sbp.user
8992
sbp.vehicle

python/pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[pytest]
22
# fftmonitor.py requires numpy
33
addopts = --doctest-modules --ignore='sbp/client/util/fftmonitor.py' --flakes
4+
markers = slow: mark test as slow.

python/sbp/jit/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

python/sbp/msg.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@
3434
_CRC_PARSER = struct.Struct(_CRC_FMT)
3535

3636

37-
def try_import_jit():
38-
from warnings import warn
39-
40-
warn("sbp.jit has been removed", UserWarning, stacklevel=1)
41-
return None
42-
43-
4437
class UnpackError(ValueError):
4538
pass
4639

python/sbp/sbp2json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def iter_messages_buffered(fp):
184184

185185

186186
def sbp_main(args):
187-
reader = io.open(args.file.fileno(), 'rb')
187+
reader = io.open(args.file.fileno(), 'rb', closefd=False)
188188
include = set(args.include)
189189
iter_fn = iter_messages_unbuffered if args.unbuffered else iter_messages_buffered
190190

python/sbp/signing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ class MsgEcdsaSignature(SBP):
623623
sbp : SBP
624624
SBP parent object to inherit from.
625625
flags : int
626-
Describes the format of the `signed\_messages` field below.
626+
Describes the format of the `signed_messages` field below.
627627
stream_counter : int
628628
Signature message counter. Zero indexed and incremented with each
629629
signature message. The counter will not increment if this message was in
@@ -754,7 +754,7 @@ class MsgEcdsaSignatureDepB(SBP):
754754
sbp : SBP
755755
SBP parent object to inherit from.
756756
flags : int
757-
Describes the format of the `signed\_messages` field below.
757+
Describes the format of the `signed_messages` field below.
758758
stream_counter : int
759759
Signature message counter. Zero indexed and incremented with each
760760
signature message. The counter will not increment if this message was in
@@ -893,7 +893,7 @@ class MsgEcdsaSignatureDepA(SBP):
893893
sbp : SBP
894894
SBP parent object to inherit from.
895895
flags : int
896-
Describes the format of the `signed\_messages` field below.
896+
Describes the format of the `signed_messages` field below.
897897
stream_counter : int
898898
Signature message counter. Zero indexed and incremented with each
899899
signature message. The counter will not increment if this message was in

python/tests/sbp/test_deprecation.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)