From 811ec16c8a27c252815e2e33ad24315afdf08f31 Mon Sep 17 00:00:00 2001 From: Anton Dyudin Date: Tue, 12 Mar 2024 19:19:54 -0700 Subject: doc: Fix test in writing-nixos-tests.section.md (#294902) * Fix test in writing-nixos-tests.section.md That paren couldn't possibly have been in the right place. (I do not have nix set up to generate `writing-nixos-tests.section.xml` or verify the test or anything, please do whatever is appropriate with this trivial change) * doc: fix numpy example test value Making the test test the right thing made it fail see PR discussion --- nixos/doc/manual/development/writing-nixos-tests.section.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/doc/manual/development/writing-nixos-tests.section.md b/nixos/doc/manual/development/writing-nixos-tests.section.md index 84b247fd2042..50886376c240 100644 --- a/nixos/doc/manual/development/writing-nixos-tests.section.md +++ b/nixos/doc/manual/development/writing-nixos-tests.section.md @@ -261,7 +261,7 @@ added using the parameter `extraPythonPackages`. For example, you could add testScript = '' import numpy as np - assert str(np.zeros(4) == "array([0., 0., 0., 0.])") + assert str(np.zeros(4)) == "[0. 0. 0. 0.]" ''; } ``` -- cgit 1.4.1