[Python-checkins] Fix hardcoded value in test_os.py (#4744)
Victor Stinner
webhook-mailer at python.org
Thu Dec 7 01:55:46 EST 2017
https://github.com/python/cpython/commit/fb77e0d855e841f42c3fa504efe79eefca9efafb
commit: fb77e0d855e841f42c3fa504efe79eefca9efafb
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: Victor Stinner <victor.stinner at gmail.com>
date: 2017-12-07T07:55:44+01:00
summary:
Fix hardcoded value in test_os.py (#4744)
files:
M Lib/test/test_os.py
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 96ee3ee577f..22412569092 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1321,7 +1321,7 @@ def get_urandom_subprocess(self, count):
'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):
More information about the Python-checkins
mailing list