Sbu Nkosi produced two flashes of brilliance as South Africa ground out a 24-18 victory over Argentina at Loftus Versfeld.
The Sharks wing dashed over for a pair of silky tries that were out of keeping with the quality in the rest of the contest, with only a late disallowed score denying Argentina a famous win.
South Africa, who start their Rugby World Cup campaign against holders New Zealand on September 21, caused a surprise by winning the recent Rugby Championship ahead of the All Blacks, Australia and Saturday's opponents.
This was their final home Test before going for global glory in Japan, and it was a tough contest, with coach Rassie Erasmus seeing his side given plenty of trouble by the Pumas.
His Boks had won 46-13 in Salta when they travelled to Argentina for last weekend's Rugby Championship finale, but this never looked like being a similarly one-sided match.
Led by hooker Schalk Brits, who at 38 years and three months became South Africa's oldest first-time captain, South Africa were often sluggish
Elton Jantjies booted South Africa ahead in the 18th minute but Argentina responded in kind through Joaquin Diaz Bonilla.
Nkosi skipped in down the right for his first try, with a stylish shuffle of his feet before darting for the line. Jantjies rattled the post with the conversion attempt.
Argentina hit back right at the end of the half with an interception try, Guido Petti seizing on a loose pass from Cobus Reinach to run in from halfway. Diaz Bonilla added the extras and the Pumas held a 10-8 half-time lead.
Nkosi produced a sparkling run and dived over for his second try, taking the aerial route to avoid a last-ditch Pumas tackle.