Yes, once.
For one grading period, the school implemented a plan where if you missed three homework assignments in a week, cumulative, for all classes, you got an automatic detention.
Yup, I missed three. So I spent the detention period finishing up some homework. The only "bad" part of it was having to get picked up by my mom - we lived about 10 miles from the school over lousy rural roads, so it's not like a quick 5 minute drive.
Oh well. Homework was usually busywork anyway, and I didn't do it for the "practice," but because it needed to be done for a grade. I usually got straight A's, so it wasn't a problem.