SAN FRANCISCO -- Gonzaga got a rare test in conference play just in time for a first-place showdown against Saint Mary's.
Johnathan Williams scored 17 points and Josh Perkins added 16 to help the 15th ranked Bulldogs to their 18th straight road victory in the West Coast Conference, 75-65 over San Francisco on Saturday night.
After winning the first five conference games by at least 29 points, Gonzaga (16-3, 6-0) had to hold off a late challenge by a San Francisco team missing two injured starters.
"We need to be put in that situation so we can show we can handle it," Williams said. "We didn't handle it a couple of times before. It's good to get a win in a close game."
Gonzaga had some tight losses during a grueling nonconference schedule, including a two-point defeat at San Diego State and a double-overtime loss to Florida. But things have been easier in the WCC leading into Thursday's game at home against Saint Mary's, which has won 12 straight.
The teams are tied for first thanks in part to two key blocked shots late by Rei Hachimura.
"We made enough plays to get the win, which is what this is all about," coach Mark Few said.
Silas Melson had 14 points and Hachimura added 10 as Gonzaga was held nearly 16 points below the its season average but still managed to win its 12th straight in the series.
Souley Boum scored 22 points and Frankie Ferrari added 18 for the Dons (10-9, 2-4). San Francisco has lost 14 straight games against ranked opponents since beating Gonzaga at home 66-65 on Feb. 12, 2012.
But the Dons kept it close in this one, even if that wasn't much consolation.
"A loss is a loss," Ferrari said. "That all is meaningless in a sense. I thought we played well together and our effort was good. But to come up short still feels the same."
The Dons managed to cut what had been a 12-point deficit in the first half down to five on a 3-pointer by Ferrari early in the second half. But USF them missed seven of its next eight shots from the field as Gonzaga back up to 14 on a 3-pointer by Perkins just past the midpoint of the half.
USF didn't go away and cut it back to six on a 3-pointer by Jordan Ratinho and had a chance to get even closer but Hachimura blocked a drive by Ferrari.
"We had a chance when we cut it to six," coach Kyle Smith said. "Frankie's drive, he got hit on it. That happens. We need that. We just need that. We had a couple of other chances there down six."
Williams hit a jump hook on the other end to make it 71-63 with less than two minutes left and Hachimura added another block on Boum. Erik Poulsen then shot an air ball from 3 and Nate Renfro turned the ball over in the final minute when the Dons had another shot to cut into the six-point lead.
Gonzaga: The Bulldogs had won their first five conference games by an average of 35.4 points per contest. They were tested a bit against USF but never really threatened. Playing a game that was at least relatively close in the second half should be a good tuneup for Gonzaga's next game, at home on Thursday against Saint Mary's, which is also unbeaten in conference play.
San Francisco: The Dons were short-handed without second-leading scorer Chase Foster (ankle) and Taavi Jurkatamm (concussion). That left them little margin for error against the more talented Bulldogs. USF squandered too many chances, missing six straight free throws, including a front end of a one-and-one during stretch of the first half.
Gonzaga: Hosts Saint Mary's on Thursday night.
San Francisco: Hosts Santa Clara on Thursday night.
For more AP college basketball coverage: http://collegebasketball.ap.org and http://twitter.com/AP-Top25
Point guard D.J. Carton, ranked No. 28 in the ESPN 100, has committed to Ohio State, choosing the Buckeyes over Big Ten rivals Michigan and Indiana.
Len Chappell, who led Wake Forest to its only Final Four trip in 1962 and was an NBA All-Star with the Knicks, has died at 77.
Former UCLA basketball player Billy Knight, who was found dead on a Phoenix roadway early Sunday, was arrested in June and charged with six felonies, including two counts of molestation of a child.