danielfm / pybreaker

Python implementation of the Circuit Breaker pattern.
BSD 3-Clause "New" or "Revised" License
512 stars 74 forks source link

Fixed generator issue / tests for Python3.5 #6

Closed dpdornseifer closed 8 years ago

dpdornseifer commented 8 years ago

.next() has been renamed to next() in Python3. Due to this issue the generator functions / tests could not be executed in Python3.5. Also the assertRaises test required a lambda function to have the next statement executed to be able to raise the exception.

linuxlewis commented 8 years ago

👍

danielfm commented 8 years ago

Sorry for the delay, guys!

Thanks for the pull request, @dpdornseifer! :smile: