Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handling memory error in timeout utility #21

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Blind4Basics
Copy link
Contributor

@Blind4Basics Blind4Basics commented Jun 29, 2021

  • removed the use of test.expect_no_error inside the timeout utility:

    • done "manually", allowing to handle data passed to the thread
    • consequence: DOCS need an update because there isn't any extra assertion anymore, now.
  • tested on cw with 3.6, 3.8 wihtout imports, 3.8 with imports: work as expected.

  • removed a comment in the framework about the timeout (deprecated info)

  • added the default message for timeout ssertion (Supply custom error message on timeout tests #4)

Still need to upddate the tests output (and maybe the tests files)
done => trying to pass the outputs checks... XD

* removed the use of `test.expect_no_error` inside the timeout utility:
  - done "manually", allowing to handle data passed to the thread
  - consequence: DOCS need an update because there isn't any extra assertion anymore, now.

* tested on cw with 3.6, 3.8 wihtout imports, 3.8 with imports: work as expected.

* removed a comment in the framework about the timeout (deprecated info)

* added the default message for timeout ssertion (codewars#4)

Still need to upddate the tests output (and maybe the tests files)
@Blind4Basics Blind4Basics changed the title handling memory error handling memory error in timeout utility Jun 29, 2021
@Blind4Basics
Copy link
Contributor Author

Blind4Basics commented Jun 29, 2021

@kazk: the tests are fucking slow to run... I bet this PR will still have troubles about the expected outputs, but if you can already take a look...?

I'll try again to offer the possibility to wrap blocks with the timetout utility while avoiding the assertion outside any test.it block, but that will be for another PR.

@Blind4Basics
Copy link
Contributor Author

Blind4Basics commented Jun 29, 2021

I don't get it... :/

exception isn't raised, apparently, while it's there in the test file. The memory crash is even weirder, because the exact same code is behaving as expected in a kumite... :/

Bed time, now.
Cheers

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