In my textbook (Physics Principles With Applications - Giancoli 7th Edition) it states that
"We assume the gas is in contact with a heat reservoir (a body whose mass is so large that, ideally, its temperature does not change significantly when heat is exchanged with our system). We also...