Skip to content

Commit

Permalink
Fix some small stuff to reduce noise
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesnyder committed Nov 6, 2018
1 parent 72f3af6 commit 6ecc687
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dallinger/experiment.py
Expand Up @@ -661,7 +661,7 @@ def restore_state_from_replay(self, app_id, session, zip_path=None, **configurat
# We need to fake dallinger_experiment to point at the current experiment
module = sys.modules[type(self).__module__]
if sys.modules.get('dallinger_experiment', module) != module:
logger.warn('dallinger_experiment is already set, updating')
logger.warning('dallinger_experiment is already set, updating')
sys.modules['dallinger_experiment'] = module

# Load the configuration system and globals
Expand Down
2 changes: 1 addition & 1 deletion dallinger/experiment_server/gunicorn.py
Expand Up @@ -14,7 +14,7 @@

def when_ready(arbiter):
# Signal to parent process that server has started
logger.warn('Ready.')
logger.warning('Ready.')


class StandaloneServer(Application):
Expand Down
2 changes: 1 addition & 1 deletion dallinger/recruiters.py
Expand Up @@ -806,7 +806,7 @@ def recruit(self, n=1):
urls.append(url)
bot = factory(url, assignment_id=assignment, worker_id=worker, hit_id=hit)
job = q.enqueue(bot.run_experiment, timeout=self._timeout)
logger.warn("Created job {} for url {}.".format(job.id, url))
logger.warning("Created job {} for url {}.".format(job.id, url))

return urls

Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Expand Up @@ -53,14 +53,14 @@ def cwd(root):
def experiment_dir(root):
os.chdir('tests/experiment')
yield
cwd(root)
os.chdir(root)


@pytest.fixture(scope="class")
def bartlett_dir(root):
os.chdir('demos/dlgr/demos/bartlett1932')
yield
cwd(root)
os.chdir(root)


@pytest.fixture(scope='class', autouse=True)
Expand Down

0 comments on commit 6ecc687

Please sign in to comment.