I'm not sure how pytest makes assert do something different, but whatever it's doing when it asserts, it's not raising an AssertionError; anyway, this test is still correct, which is the main point.