summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Fink2024-03-21 09:39:53 +0100
committerChristoph Fink2024-03-21 09:39:53 +0100
commit4051862c97fcfc3b55a488c1b10e2b361df8e3eb (patch)
tree6bf6e5dfe66c79aff0115c732c53a4d2e09b0a17
parent1b657b23f8d981dabd3ddc1b965cb977360b0d17 (diff)
parentf603e3b3f46558f165252de48a6997bc89e78c93 (diff)
downloadaur-4051862c97fcfc3b55a488c1b10e2b361df8e3eb.tar.gz
Merge subtree 'python-av'
-rw-r--r--deprecated-features-tests.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/deprecated-features-tests.patch b/deprecated-features-tests.patch
new file mode 100644
index 000000000000..f1f19716df22
--- /dev/null
+++ b/deprecated-features-tests.patch
@@ -0,0 +1,32 @@
+diff --unified --recursive --text a/tests/test_file_probing.py b/tests/test_file_probing.py
+--- a/tests/test_file_probing.py 2023-11-03 18:23:00.000000000 +0200
++++ b/tests/test_file_probing.py 2023-11-26 22:59:22.855618027 +0200
+@@ -320,20 +320,6 @@
+ self.assertIn(stream.coded_width, (720, 0))
+ self.assertIn(stream.coded_height, (576, 0))
+
+- # Deprecated properties.
+- with warnings.catch_warnings(record=True) as captured:
+- self.assertIsNone(stream.framerate)
+- self.assertEqual(
+- captured[0].message.args[0],
+- "VideoStream.framerate is deprecated as it is not always set; please use VideoStream.average_rate.",
+- )
+- with warnings.catch_warnings(record=True) as captured:
+- self.assertIsNone(stream.rate)
+- self.assertEqual(
+- captured[0].message.args[0],
+- "VideoStream.rate is deprecated as it is not always set; please use VideoStream.average_rate.",
+- )
+-
+
+ class TestVideoProbeCorrupt(TestCase):
+ def setUp(self):
+@@ -362,7 +348,6 @@
+ self.assertTrue(str(stream).startswith("<av.VideoStream #0 h264, None 0x0 at "))
+
+ # actual stream properties
+- self.assertEqual(stream.average_rate, None)
+ self.assertEqual(stream.duration, None)
+ self.assertEqual(stream.frames, 0)
+ self.assertEqual(stream.id, 0)