Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUpClass(cls):
cls.conn = None
try:
cls.conn = None
if os.name == 'nt':
cls.conn = saspy.SASsession(cfgname='winlocal')
else:
cfg_file = os.path.join(current_dir, 'saspy_config.py')
cls.conn = saspy.SASsession(cfgfile=cfg_file)
print('Connected to SAS')
cls.conn.upload_frame = TestExamplesLocal.sas_upload
except TypeError:
raise unittest.SkipTest('Environment variable may not be defined')
def setUpClass(cls):
cls.conn = None
try:
cls.conn = None
if os.name == 'nt':
cls.conn = saspy.SASsession(cfgname='winlocal')
else:
cfg_file = os.path.join(
current_dir, '../examples/saspy_config.py')
cls.conn = saspy.SASsession(cfgfile=cfg_file)
print('Connected to SAS')
except TypeError:
raise unittest.SkipTest('Environment variable may not be defined')
def setUpClass(cls):
cls.conn = None
try:
cls.conn = None
if os.name == 'nt':
cls.conn = saspy.SASsession(cfgname='winlocal')
else:
cfg_file = os.path.join(
current_dir, '../examples/saspy_config.py')
cls.conn = saspy.SASsession(cfgfile=cfg_file)
print('Connected to SAS')
except TypeError:
raise unittest.SkipTest('Environment variable may not be defined')
def setUpClass(cls):
cls.conn = None
try:
cls.conn = None
if os.name == 'nt':
cls.conn = saspy.SASsession(cfgname='winlocal')
else:
cfg_file = os.path.join(current_dir, 'saspy_config.py')
cls.conn = saspy.SASsession(cfgfile=cfg_file)
print('Connected to SAS')
cls.conn.upload_frame = TestExamplesLocal.sas_upload
except TypeError:
raise unittest.SkipTest('Environment variable may not be defined')