[Jython-checkins] jython: Fix test_dumbdbm so that it properly determines if underlying os is posix
jim.baker
jython-checkins at python.org
Sun Jun 22 22:28:35 CEST 2014
http://hg.python.org/jython/rev/9a58255792ac
changeset: 7313:9a58255792ac
user: Jim Baker <jim.baker at rackspace.com>
date: Sun Jun 22 14:28:28 2014 -0600
summary:
Fix test_dumbdbm so that it properly determines if underlying os is posix
files:
Lib/test/test_dumbdbm.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_dumbdbm.py b/Lib/test/test_dumbdbm.py
--- a/Lib/test/test_dumbdbm.py
+++ b/Lib/test/test_dumbdbm.py
@@ -51,7 +51,13 @@
os.umask(old_umask)
expected_mode = 0635
- if os.name != 'posix':
+ is_posix = True
+ if os.name == 'java':
+ if os._name != 'posix':
+ is_posix = False
+ elif os.name != 'posix':
+ is_posix = False
+ if not is_posix:
# Windows only supports setting the read-only attribute.
# This shouldn't fail, but doesn't work like Unix either.
expected_mode = 0666
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list