South Africa defeated Egypt 1-0 last March
Defender Siyabonga Sangweni headed in at the back post from a 44th minute corner to give South Africa - which fielded five debutants in its starting lineup - a boost ahead of a crucial African Cup qualifying meeting with Egypt next month.
South Africa was missing first-team regulars with overseas sides and many leading domestic league players who were held back by their clubs.
Bafana Bafana held off a late surge from the home team to secure its victory. South Africa goalkeeper Wayne Sandilands pulled off a string of saves on his debut and Tanzania had a goal ruled out for offside.
Short link: