ARLINGTON, Texas -- The Texas Rangers keep winning, giving themselves a chance to reach the playoffs for the fourth season in a row.
They're just not getting any help while running out of games.
Leonys Martin hit a three-run double, Ian Kinsler homered and the Rangers beat the Houston Astros 7-3 on Wednesday night, a victory they needed just to keep pace while chasing in the AL wild-card race.
"We put ourselves in this position. We have to win the games, we've got to get help from someone else," Kinsler said. "The best we can do is win four more games."
The Astros lost their 12th in a row and set a team record with their 108th of the season. The Rangers completed a three-game sweep and finished 17-2 with 11 straight wins against their instate rival.
"It's one of those things where we want to win, but we have to take account of what we've done," first-year Astros manager Bo Porter said. "Nobody's going to feel sorry for us."
The Rangers remained a game behind Cleveland for the AL's second wild-card spot -- Tampa Bay is a game ahead of the Indians. Texas has four games left in the regular season, with the series opener at home against the Los Angeles Angels on Thursday night.
"You just get the mentality of taking care of the business that's in front of you," manager Ron Washington said. "If we can continue to win ballgames, I don't care what they do. And if they win out the streak and we win out the string also, then that's just the way it is."
Rookie left-hander Martin Perez (10-5) struck out eight over seven innings.
The bases-loaded double by Martin was the big blow for the Rangers when they had seven consecutive batters reach with two outs in the fourth off Dallas Keuchel (6-10). That put the Rangers up 4-3, and Martin scored on a single by Kinsler.
Kinsler's 13th homer, a solo shot in the sixth, chased Keuchel.
Before sweeping Houston, the Rangers hadn't won consecutive games since a three-game sweep at Seattle from Aug. 26-28. They had an AL-best record of 20-7 in August and a two-game lead in the AL West before starting this month 5-15 while Oakland claimed the division title for the second year in a row.
"Just keep winning. That's our mindset right now. We're competing right now," shortstop Elvis Andrus said. "We now at the same time we're winning, we have to hope for the other guys to lose. ... That's our reality right now."
The Astros tied the 2001-03 Detroit Tigers for the fifth-most losses over a three-year span at 321, according to STATS. They trail only the 1962-64 New York Mets (340), the 1963-65 Mets (332), the 1915-17 Philadelphia Athletics (324) and the 1940-42 Phillies (323).
After a day off Thursday, the Astros complete their season with three games at home this weekend against the New York Yankees.
The Rangers' 17 wins are the most Texas has ever had against a team in the same season, and Cleveland won its 17th against the White Sox on Wednesday night. The last team with 17 wins against another opponent before that was Oakland over Seattle in 2006.
Houston finished with a 27-54 record on the road, still its most wins away from home since 2010.
Ten of the first 11 outs by Texas came on groundballs against Keuchel, one of the majors' best with a 2 1/2-to-1 ratio of groundballs to flyballs.
In the Rangers third, Craig Gentry reached on a throwing error by shortstop Jonathan Villar. After a stolen base and a wild pitch, Gentry scored when Andrus hit what could have been an inning-ending double play grounder. But the ball slipped out of second baseman Jose Altuve's hand when he tried to make the relay throw to first.
Altuve, whose 39 hits in September are most in the majors, opened the Astros fourth with a double off the left-field wall and scored on a single by Chris Carter. Brandon Laird's two-run homer made it 3-1.
Keuchel got the first two outs of the fourth on grounders before the Rangers loaded the bases on Jeff Baker's single, a walk and a hit batsman. Martin cleared the bases with a double to right.
"It's disappointing from my aspect," Keuchel said. "Especially when we just put a three-spot up on the board."
Houston had 12 strikeouts in the game, increasing its franchise-record season total to 1,504. That is 25 shy of the major league record set by Arizona in 2010. ... The Astros also had a 12-game losing streak last year. ... Villar has 15 errors in 54 games. ... Houston was 1-8 this season at Rangers Ballpark, the only win a game Keuchel started July 6.