STX Entertainment
Now playing
00:59
'Sesame Street' sues raunchy puppet movie
NEW YORK, NY - SEPTEMBER 28:  Trevor Noah hosts Comedy Central's "The Daily Show with Trevor Noah" premiere on September 28, 2015 in New York City.  (Photo by Brad Barket/Getty Images for Comedy Central)
Brad Barket/Getty Images North America/Getty Images for Comedy Central
NEW YORK, NY - SEPTEMBER 28: Trevor Noah hosts Comedy Central's "The Daily Show with Trevor Noah" premiere on September 28, 2015 in New York City. (Photo by Brad Barket/Getty Images for Comedy Central)
Now playing
01:00
This joke about Aboriginal women has Trevor Noah under fire
NEW YORK, NY - MAY 17:  Priyanka Chopra attends the 2016 ABC Upfront at David Geffen Hall on May 17, 2016 in New York City.  (Photo by Brad Barket/Getty Images)
Brad Barket/Getty Images/FILE
NEW YORK, NY - MAY 17: Priyanka Chopra attends the 2016 ABC Upfront at David Geffen Hall on May 17, 2016 in New York City. (Photo by Brad Barket/Getty Images)
Now playing
01:08
Actress apologizes over 'Quantico' episode
TBS
Now playing
01:29
Samantha Bee: 'Sorry for breaking America'
NEW YORK, NY - APRIL 20:  Moderator Joy Reid attends the "Rest In Power: The Trayvon Martin Story" premiere during the 2018 Tribeca Film Festival at BMCC Tribeca PAC on April 20, 2018 in New York City.  (Photo by Dia Dipasupil/Getty Images for Tribeca Film Festival)
Dia Dipasupil/Getty Images for Tribeca Film Festival
NEW YORK, NY - APRIL 20: Moderator Joy Reid attends the "Rest In Power: The Trayvon Martin Story" premiere during the 2018 Tribeca Film Festival at BMCC Tribeca PAC on April 20, 2018 in New York City. (Photo by Dia Dipasupil/Getty Images for Tribeca Film Festival)
Now playing
02:48
MSNBC anchor apologizes for inflammatory posts
Emma McIntyre/Getty Images North America/Getty Images for TBS
Now playing
01:23
Samantha Bee calls Ivanka Trump the 'C-word'
ROSEANNE - "Roseanne Gets the Chair" - Roseanne's clash with Darlene over how she's raising her kids - especially Harris - reaches a breaking point; while Dan tries to help Roseanne with her bad knee by getting her an elevator chair, which she refuses to use because she doesn't want to admit getting old, on the second episode of the revival of "Roseanne," TUESDAY, APRIL 3 (8:00-8:30 p.m. EDT), on The ABC Television Network. (ABC/Adam Rose)
ROSEANNE BARR, JOHN GOODMAN
Adam Rose/American Broadcasting Companies, Inc./ABC
ROSEANNE - "Roseanne Gets the Chair" - Roseanne's clash with Darlene over how she's raising her kids - especially Harris - reaches a breaking point; while Dan tries to help Roseanne with her bad knee by getting her an elevator chair, which she refuses to use because she doesn't want to admit getting old, on the second episode of the revival of "Roseanne," TUESDAY, APRIL 3 (8:00-8:30 p.m. EDT), on The ABC Television Network. (ABC/Adam Rose) ROSEANNE BARR, JOHN GOODMAN
Now playing
02:00
ABC cancels 'Roseanne' after racist tweets
ABC/"Jimmy Kimmel Live!"
Now playing
02:13
Roseanne Barr apologizes after racist tweets
WASHINGTON, DC - APRIL 28:  Comedian Michelle Wolf attends the Celebration After the White House Correspondents' Dinner hosted by Netflix's The Break with Michelle Wolf on April 28, 2018 in Washington, DC.  (Photo by Tasos Katopodis/Getty Images for Netflix)
Tasos Katopodis/Getty Images
WASHINGTON, DC - APRIL 28: Comedian Michelle Wolf attends the Celebration After the White House Correspondents' Dinner hosted by Netflix's The Break with Michelle Wolf on April 28, 2018 in Washington, DC. (Photo by Tasos Katopodis/Getty Images for Netflix)
Now playing
01:23
WHCD comedian defends her controversial jokes
CBS/Spartina Productions
Now playing
01:34
'Simpsons' voice actor has regret over Apu
Fox/The Simpsons
Now playing
02:47
How a 'Simpsons' character pushed stereotypes
Getty Images
Now playing
01:34
Bill Maher under fire for using racial slur
WBBM
Now playing
01:15
TV shoot with Katie Holmes angers parents
FILE - This image released by Columbia Pictures shows Peter Rabbit, voiced by James Corden and Cottontail in a scene from "Peter Rabbit."  The filmmakers and the studio behind it are apologizing for insensitively depicting a character's allergy in the film that has prompted backlash online. Sony Pictures said Sunday, Feb. 11, 2018, in a statement the film "should not have made light" of a character being allergic to blackberries "even in a cartoonish" way. (Columbia Pictures/Sony via AP, File)
Courtesy of Sony Pictures/AP
FILE - This image released by Columbia Pictures shows Peter Rabbit, voiced by James Corden and Cottontail in a scene from "Peter Rabbit." The filmmakers and the studio behind it are apologizing for insensitively depicting a character's allergy in the film that has prompted backlash online. Sony Pictures said Sunday, Feb. 11, 2018, in a statement the film "should not have made light" of a character being allergic to blackberries "even in a cartoonish" way. (Columbia Pictures/Sony via AP, File)
Now playing
01:13
Allergy scene leads to 'Peter Rabbit' boycott
making a murderer pkg_00002215.jpg
Netflix
making a murderer pkg_00002215.jpg
Now playing
01:52
Controversial Netflix series spurs its fans into action
Oscars diversity controversy Sundance origncc_00005830.jpg
Oscars diversity controversy Sundance origncc_00005830.jpg
Now playing
01:52
Spike Lee: 'Step up' to fight #OscarsSoWhite
(CNN) —  

The company behind “Sesame Street” has lost its lawsuit against the makers of Melissa McCarthy’s upcoming raunchy comedy, “The Happytime Murders,” for referencing the popular kids show in its marketing campaign.

A New York judge ruled Wednesday that Sesame Workshop failed to demonstrate the movie’s marketing tagline – “No Sesame. All Street.” – might confuse moviegoers.

The R-rated film follows “two clashing detectives” – Melissa McCarthy and her partner, a puppet named Phil Phillips – in Los Angeles as they work together “to solve the brutal murders of the former cast of a beloved classic puppet television show,” according to its website.

Sesame Workship, the educational organization behind “Sesame Street,” had sued over the tagline, which is used in the film’s marketing campaign, including its trailer.

The lawsuit argued that STX Entertainment does not have the right to use “Sesame Street” in its tagline.

“[The tagline] deliberately confuses consumers into mistakenly believing that Sesame is associated with, has allowed, or has even endorsed or produced the movie and tarnishes Sesame’s brand,” the lawsuit said.

“The Happytime Murders” is directed by Brian Henson, son of former “Sesame Street” puppeteer Jim Henson, creator of the Muppets.

A spokesperson for STX Entertainment told CNN they were pleased with the ruling.

“We fluffing love Sesame Street and we’re obviously very pleased that the ruling reinforced what STX’s intention was from the very beginning – to honor the heritage of The Jim Henson Company’s previous award-winning creations while drawing a clear distinction between any Muppets or Sesame Street characters and the new world Brian Henson and team created,” STX said in a statement.

CNN has reached out to Sesame Workshop for comment, but has not yet heard back.

In 2015, Sesame Workshop and HBO signed a five-year partnership for new episodes of “Sesame Street” to air on the cable channel. CNN and HBO are both owned by Turner Broadcasting.

“The Happytime Murders” is set to hit theaters on August 17.

CNN’s Tony Marco contributed to this report.