Skip to content

multiprocess: pass None as default argument#212

Merged
brian-brazil merged 1 commit into
prometheus:masterfrom
dzen:bcz/use_none_as_default_value
Nov 13, 2017
Merged

multiprocess: pass None as default argument#212
brian-brazil merged 1 commit into
prometheus:masterfrom
dzen:bcz/use_none_as_default_value

Conversation

@dzen

@dzen dzen commented Nov 13, 2017

Copy link
Copy Markdown
Contributor

The goal here is to evaluate the environ only at parse time : I tried to mock the variable to make some unittests, but I hit those lines : I cannot patch the environ to fill a temp destination for that test

@brian-brazil any comment on this ?

The goal here is to evaluate the environ only at parse time
to allow to mock environment variables
@brian-brazil brian-brazil merged commit 3679aa2 into prometheus:master Nov 13, 2017
@brian-brazil

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants