aboutsummaryrefslogtreecommitdiff
path: root/pyfakefs/pytest_tests/segfault_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyfakefs/pytest_tests/segfault_test.py')
-rw-r--r--pyfakefs/pytest_tests/segfault_test.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/pyfakefs/pytest_tests/segfault_test.py b/pyfakefs/pytest_tests/segfault_test.py
new file mode 100644
index 0000000..05f46dc
--- /dev/null
+++ b/pyfakefs/pytest_tests/segfault_test.py
@@ -0,0 +1,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={})