23rd September 2021
Computer Science⚑
Programming⚑
Basics⚑
-  New: str.count(sub[, start[, end]]).Return the number of non-overlapping occurrences of substring subin the range [start,end].
pytest⚑
-  New: Capture stdout/stderr output. Use the capfdfixture.Example: def test_foo(capfd): foo() # Writes "Hello World!" to stdout out, err = capfd.readouterr() assert out == "Hello World!"