Harry had almost forgotten that the exam results were still to come, but come they did. To their great surprise, both he and Ron passed with good marks; Hermione, of course, had the best grades of the first years. Even Neville scraped through, his good Herbology mark making up for his abysmal Potions one. They had hoped that Goyle, who was almost as stupid as he was mean, might be thrown out, but he had passed, too. It was a shame, but as Ron said, you couldn’t have everything in life. (Harry Potter and the Sorcerer's Stone)
There is the word hoped, having me stray into think that might might be used expressing a hope. But there’s no entry for this type of examples in OALD and Merriam-Webster’s. They are only used with inversions of subject-auxiliary. Does the ‘might’ not express a hope; does it express a possibility?