Skip to content

Commit 5fda0f6

Browse files
d-w-moorealanking
authored andcommitted
[#3] testing - irods.test.helpers can now load and run on MS Windows.
As a result Python clients running on Windows can now use the helpers module's convenience function, make_session(), which is not only used in the test suite but also generally useful for quick manual tests.
1 parent b583a64 commit 5fda0f6

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

irods/test/helpers.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import random
1414
import datetime
1515
import json
16-
from pwd import getpwnam
1716
from irods.session import iRODSSession
1817
from irods.message import iRODSMessage
1918
from irods.password_obfuscation import encode
@@ -96,14 +95,7 @@ def make_session(**kwargs):
9695
env_file = os.environ['IRODS_ENVIRONMENT_FILE']
9796
except KeyError:
9897
env_file = os.path.expanduser('~/.irods/irods_environment.json')
99-
100-
try:
101-
os.environ['IRODS_CI_TEST_RUN']
102-
uid = getpwnam('irods').pw_uid
103-
except KeyError:
104-
uid = None
105-
106-
return iRODSSession( irods_authentication_uid = uid, irods_env_file = env_file, **kwargs )
98+
return iRODSSession( irods_env_file = env_file, **kwargs )
10799

108100

109101
def home_collection(session):

0 commit comments

Comments
 (0)