weren't they. 因为nobody, somebody等在反义疑问句中用they, everything, something等用it.
Nobody was having a class at three o'clock in this classroom, was it? 是吗? Nobody was having a class at three o'clock in this classroom, wasn't it? 不是吗?