Skip to content

Commit 878d914

Browse files
committed
doc: test: mention OS detection preferences in style guideline
1 parent 4c65ac9 commit 878d914

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ don't have test cases for.
3737
`set_test_params()`, `add_options()` and `setup_xxxx()` methods at the top of
3838
the subclass, then locally-defined helper methods, then the `run_test()` method.
3939
- Use `f'{x}'` for string formatting in preference to `'{}'.format(x)` or `'%s' % x`.
40+
- Use `platform.system()` for detecting the running operating system and `os.name` to
41+
check whether it's a POSIX system (see also the `skip_if_platform_not_{linux,posix}`
42+
methods in the `BitcoinTestFramework` class, which can be used to skip a whole test
43+
depending on the platform).
4044

4145
#### Naming guidelines
4246

0 commit comments

Comments
 (0)