Fix hardcoded value in test_os.py (#4744)

diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 96ee3ee..2241256 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1321,7 +1321,7 @@
             'sys.stdout.buffer.flush()'))
         out = assert_python_ok('-c', code)
         stdout = out[1]
-        self.assertEqual(len(stdout), 16)
+        self.assertEqual(len(stdout), count)
         return stdout
 
     def test_urandom_subprocess(self):