Message5357
Our Jython 2.5.1+ (r6954) buildslave for Twisted is reporting the following error:
Traceback (most recent call last):
File "./bin/trial", line 22, in <module>
run()
File "/home/buildbot/Buildslaves/twisted/jython2.5-thijs-
ubuntu/Twisted/twisted/scripts/trial.py", line 363, in run
test_result = trialRunner.run(suite)
File "/home/buildbot/Buildslaves/twisted/jython2.5-thijs-
ubuntu/Twisted/twisted/trial/runner.py", line 833, in run
return self._runWithoutDecoration(test)
File "/home/buildbot/Buildslaves/twisted/jython2.5-thijs-
ubuntu/Twisted/twisted/trial/runner.py", line 859, in _runWithoutDecoration
oldDir = self._setUpTestdir()
File "/home/buildbot/Buildslaves/twisted/jython2.5-thijs-
ubuntu/Twisted/twisted/trial/runner.py", line 749, in _setUpTestdir
if self._testDirLock.lock():
File "/home/buildbot/Buildslaves/twisted/jython2.5-thijs-
ubuntu/Twisted/twisted/python/lockfile.py", line 125, in lock
symlink(str(os.getpid()), self.name)
File "/home/buildbot/Buildslaves/twisted/jython2.5-thijs-
ubuntu/Twisted/twisted/python/lockfile.py", line 125, in lock
symlink(str(os.getpid()), self.name)
AttributeError: 'module' object has no attribute 'getpid'
(Full error log can be found on http://buildbot.twistedmatrix.com/builders/ubuntu64-jython2.5-
select/builds/1/steps/trial/logs/stdio)
When comparing CPython 2.5/2.6 with Jython, it seems getpid() is missing, as the session below
shows:
thijs@saturn:/usr/local/src/jython-trunk$ jython
Jython 2.5.1+ (trunk:6954, Dec 7 2009, 11:16:37)
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.5.0_06
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getpid()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'getpid'
>>>
thijs@saturn:/usr/local/src/jython-trunk$ python2.6
Python 2.6.4 (r264:75706, Nov 9 2009, 18:11:10)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
thijs@saturn:/usr/local/src/jython-trunk$ python2.5
impoPython 2.5.4 (r254:67916, Dec 25 2008, 15:04:44)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import os
>>> os.getpid()
22374
>>> |
|
Date |
User |
Action |
Args |
2009-12-07 21:09:30 | thijs | set | recipients:
+ thijs, glyph |
2009-12-07 21:09:30 | thijs | set | messageid: <1260220170.03.0.928777266515.issue1518@psf.upfronthosting.co.za> |
2009-12-07 21:09:29 | thijs | link | issue1518 messages |
2009-12-07 21:09:28 | thijs | create | |
|