The game at Ashton gate will take place on Saturday, 1st August - a week before the new Championship season begins.
'It is the right game for us to play seven days before the start of what will be a very competitive season," City boss Gary Johnson told the club's official website..
"We wanted a typically English type of game which was competitive but would also allow us to work on our own shape.'
"The two clubs have good links."