Rob Newton hit an unbeaten century for Northamptonshire as Pakistan's bowlers were made to toil on the penultimate day of their warm-up match at Wantage Road.
Opening batsman Newton (102no) was supported by Adam Rossington (42) and Josh Cobb (52) as he notched his 13th first-class century, an innings which has included 11 fours.
Northants closed day three on 240-5, a lead of 71, with Pakistan leg-spinner Shadab Khan - who picked up six wickets in the hosts' first innings of 259 - and left-arm seamer Rahat Ali claiming two scalps apiece.
Pakistan had earlier been bowled out for 428, an advantage of 169, with Asad Shafiq (186no) adding 51 to his overnight score before off-spinner Rob Keogh (4-111) dismissed last man Rahat.
Pakistan will serve as the opposition in Ireland's maiden Test, in Dublin from May 11, before games against England at Lord's (from May 24) and Headingley (from June 1).
Watch each of those three Test matches live on Sky Sports Cricket.