Skip to content

Commit 84cb43a

Browse files
committed
ws3
1 parent 2533483 commit 84cb43a

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

irods/client_configuration/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def __new__(meta, name, bases, attrs):
4545

4646

4747
class ConnectionsProperties(iRODSConfiguration, metaclass=iRODSConfigAliasMetaclass):
48-
4948
__slots__=()
5049

5150
@property
@@ -68,7 +67,6 @@ class ConfigurationValueError(ValueError,ConfigurationError): pass
6867

6968

7069
class Genquery1_Properties(iRODSConfiguration, metaclass=iRODSConfigAliasMetaclass):
71-
7270
__slots__ = ()
7371

7472
@property

irods/test/client_configuration_test.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
import irods.client_configuration as cfg
44

5+
56
# Test assignments on the negative and positive space of the
67
# client configuration.
7-
88
class TestClientConfigurationAttributes(unittest.TestCase):
9-
109
def test_configuration_writes_and_miswrites__issue_708(self):
1110
# For caching configuration objects
1211
configuration_level = {}
@@ -19,16 +18,15 @@ def test_configuration_writes_and_miswrites__issue_708(self):
1918
attribute_name = name_parts[-1]
2019
if isinstance(value, cfg.iRODSConfiguration):
2120
configuration_level[dotted_name] = value
22-
else:
23-
if is_conf:
24-
leaf_names.append(attribute_name)
21+
elif is_conf:
22+
leaf_names.append(attribute_name)
2523

26-
# Test the positive space, i.e. the 'hit'
27-
setattr(configuration_level[namespace], attribute_name, value)
24+
# Test the positive space, i.e. the 'hit'
25+
setattr(configuration_level[namespace], attribute_name, value)
2826

29-
# Test the negative space, i.e. the 'miss'
30-
with self.assertRaises(AttributeError):
31-
setattr(configuration_level[namespace], attribute_name+'_1', value)
27+
# Test the negative space, i.e. the 'miss'
28+
with self.assertRaises(AttributeError):
29+
setattr(configuration_level[namespace], attribute_name + '_1', value)
3230

3331
# These cases were identified as likely ones for possible failed writes via misspelling.
3432
self.assertIn('irods_query_limit', leaf_names)

0 commit comments

Comments
 (0)