Skip to content

fix broken unit tests by avoid triggering deprecated behaviour (unless intended)#1126

Merged
boegel merged 14 commits intoeasybuilders:developfrom
boegel:depr20_in_tests
Dec 19, 2014
Merged

fix broken unit tests by avoid triggering deprecated behaviour (unless intended)#1126
boegel merged 14 commits intoeasybuilders:developfrom
boegel:depr20_in_tests

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Dec 19, 2014

this also includes the fixes in #1123, #1124 and #1127 which are required to make all tests pass

@hpcugentbot
Copy link
Copy Markdown

Test FAILed.

@JensTimmerman
Copy link
Copy Markdown

Tests are still failing?

Comment thread test/framework/config.py
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably want to do this in a setup method?
and then set it back after your test is done?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the default setUp method (see test/framework/utilities.py) sets this to 100000, so this is resetting it so the deprecated behaviour can be tested...

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with it I have is that it seems to do some magic behind the scenes, but it is needed, but I don't know why.
the method name is also very non descriptive.

Comment thread test/framework/easyconfig.py Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method names should be all lower case

@hpcugentbot
Copy link
Copy Markdown

Test FAILed.

@hpcugentbot
Copy link
Copy Markdown

Test FAILed.

@hpcugentbot
Copy link
Copy Markdown

Test FAILed.

@hpcugentbot
Copy link
Copy Markdown

Test FAILed.

@hpcugentbot
Copy link
Copy Markdown

Test PASSed.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Dec 19, 2014

w00! Jenkins gives this a green light, so I'll merge this in to fix the develop tests running on Jenkins.

boegel added a commit that referenced this pull request Dec 19, 2014
fix broken unit tests by avoid triggering deprecated behaviour (unless intended)
@boegel boegel merged commit 31ba20c into easybuilders:develop Dec 19, 2014
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.

3 participants