But Parliament does not want to enact such a law because it would then suffer the consequences, i.e., an election. Tough for them. They don't want to be accountable to their constituents. Such a conflict is so sad.
It’s a misreading to suppose that Parliament doesn’t want an election: although it might appear that way because Corbyn turned down Johnson’s bid for a mid-October election. Corbyn wants an election, but he was never going to back an election timed to suit Johnson’s convenience, in other words before October 31st. Johnson set a beartrap with that offer, which Corbyn declined to fall into (some reports say he was so desperate for an election that he would have gone for it despite the obvious risks, but wiser heads in Labour talked him out of it).