handle deprecation of assert_block safely
Merge pull request #24 from rsl/master

Handle deprecation of assert_block safely