[Jython-checkins] jython: Somethimes /proc/pid/cmdline is too long and bits of it are truncated which
darjus.loktevic
jython-checkins at python.org
Thu Jan 21 16:33:16 EST 2016
https://hg.python.org/jython/rev/8b66fb32e339
changeset: 7880:8b66fb32e339
user: Darjus Loktevic <darjus at gmail.com>
date: Fri Jan 22 08:25:13 2016 +1100
summary:
Somethimes /proc/pid/cmdline is too long and bits of it are truncated which manifests in this test failing, reducing restrictions a bit as all we're doing is testing if we can read it
ttp://stackoverflow.com/questions/199130/how-do-i-increase-the-proc-pid-cmdline-4096-byte-limit
files:
Lib/test/test_file_jy.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_file_jy.py b/Lib/test/test_file_jy.py
--- a/Lib/test/test_file_jy.py
+++ b/Lib/test/test_file_jy.py
@@ -62,7 +62,7 @@
@unittest.skipUnless(System.getProperty('os.name') == u'Linux', 'Linux required')
def test_can_read_proc_filesystem(self):
with open('/proc/{}/cmdline'.format(os.getpid())) as f:
- self.assertIn('org.python.util.jython', f.read())
+ self.assertIn('jython', f.read())
def test_main():
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list