On Pygame my caption is not showing. I looked around only advice was to put captions before initializing the window but it is still not working. This works perfectly fine on my windows machine. Putting the caption line in the loop just breaks the program, I have tried putting the caption line before and after initializing the display. None of those things work.
import pygame
pygame.init()
pygame.display.set_caption("test")
screen = pygame.display.set_mode((300, 300))
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False