An assertion error usually gives you a file name and a line. Have you tried to look at it? If not, give it here so we might try to find out what going on.

I've tried your code and could find no problem. It executes perfectly without any assertin error.