The Object of My Affection is a 1998 romantic comedy film, adapted from the book of the same title by Stephen McCauley, and starring Jennifer Aniston and Paul Rudd. The story concerns a pregnant New York social worker who develops romantic feelings for her gay best friend, and the complications that ensue. The film is directed by Nicholas Hytner, and the screenplay was written by Wendy Wasserstein. Wikipedia
Sidney: If I wasn't happily married and you weren't my wife's stepsister I'd have an affair with you in a second.