aboutsummaryrefslogtreecommitdiff
path: root/pyfakefs/pytest_tests/segfault_test.py
blob: 05f46dc1bc611c6f1eac079f1c38d0b482d43681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""
This is a regression test for #866 that shall ensure that
shutting down the test session after this specific call does not result
in a segmentation fault.
"""
import opentimelineio as otio


def test_empty_fs(fs):
    pass


def test_create_clip(fs):
    """If the fs cache is not cleared during session shutdown, a segmentation fault
    will happen during garbage collection of the cached modules."""
    otio.core.SerializableObjectWithMetadata(metadata={})