It is the same in Spain.
Fun story, I had a professor in university that tried to force us to buy his own book for his course, refusing to provide notes or any other free alternatives, and for the final exam he allowed anyone to bring in his book.
We complained to the school board as this was unfair and there was a conflict of interests, the exam was redone by a committee and a new professor replaced him the next year.