Skip to content

Commit db372da

Browse files
committed
Trying to fit the last commit
1 parent d7d9d10 commit db372da

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

openml/apiconnector.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ def _parse_config(self):
237237
'private_directory': os.path.expanduser('~/.openml/private')}
238238

239239
config_file = os.path.expanduser('~/.openml/config')
240-
# Save the config file to check its existence at test time
241-
self.config_file = config_file
242240
config = configparser.RawConfigParser(defaults=defaults)
243241

244242
if not os.path.exists(config_file):

tests/test_apiconnector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def setUp(self):
4343
self.connector = APIConnector(cache_directory=self.workdir)
4444
print(self.connector._session_hash)
4545

46-
if not os.path.exists(self.connector.config_file):
46+
config_file = os.path.expanduser('~/.openml/config')
47+
if not os.path.exists(config_file):
4748
raise Exception("OpenML config file required to run unit tests. "
4849
"See https://github.com/openml/OpenML/wiki/Client-API")
4950

0 commit comments

Comments
 (0)