Message11487

Author jochenhebbrecht
Recipients jochenhebbrecht
Date 2017-07-20.12:53:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500555213.34.0.220104726555.issue2611@psf.upfronthosting.co.za>
In-reply-to
Content
Local environment
---------------------
$ java -jar jython-standalone-2.7.0.jar 
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_131
Type "help", "copyright", "credits" or "license" for more information.
>>> os.mkdir('/tmp/jochen')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'os' is not defined
>>> import os
>>> os.mkdir('/tmp/jochen')
>>> os.mkdir('/tmp/jochen')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 17] File exists: '/tmp/jochen'

=> We get Errno 17 which is expected.


Docker environment
---------------------
$ java -jar jython-standalone-2.7.0.jar 
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_131
Type "help", "copyright", "credits" or "license" for more information.
>>> os.mkdir('/tmp/jochen')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'os' is not defined
>>> import os
>>> os.mkdir('/tmp/jochen')
>>> os.mkdir('/tmp/jochen')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 20000] Unknown error: 20000: '/tmp/jochen'

=> We get a different Errno
History
Date User Action Args
2017-07-20 12:53:33jochenhebbrechtsetmessageid: <1500555213.34.0.220104726555.issue2611@psf.upfronthosting.co.za>
2017-07-20 12:53:33jochenhebbrechtsetrecipients: + jochenhebbrecht
2017-07-20 12:53:33jochenhebbrechtlinkissue2611 messages
2017-07-20 12:53:33jochenhebbrechtcreate