BOSTON (AP) — Another longtime Democratic congressman has lost his seat in a primary upset to a candidate whose upstart campaign appeals to those in the party seeking younger, more diverse candidates pushing progressive policies.

In Massachusetts, congressman Michael Capuano lost the seat he's held for 20 years to a Boston city councilor, Ayanna Pressley. Without a Republican on the ballot this fall, the 44-year-old is almost assured of becoming the state's first black congresswoman.

In other primary races in Massachusetts, Democratic U.S. Sen. Elizabeth Warren sailed through her primary unopposed. She'll face a Republican state representative, Geoff Diehl, a Trump supporter.

Republican Gov. Charlie Baker won his party's nomination for a second term, defeating Scott Lively, a conservative minister and Trump backer. He'll face Democrat Jay Gonzalez in November.