mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
tests: Fix gio-tool.py test on macOS
Content types are different on macOS.
This fixes commit 9028c9bdf
.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3158
This commit is contained in:
parent
85d93fb581
commit
d59bac3f32
@ -27,6 +27,7 @@ import collections
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
@ -125,7 +126,12 @@ class TestGioTool(unittest.TestCase):
|
||||
result = self.runGio(
|
||||
"info", "--attributes=standard::content-type", tmpfile.name
|
||||
)
|
||||
self.assertIn("standard::content-type: application/x-zerosize", result.out)
|
||||
if sys.platform == "darwin":
|
||||
self.assertIn("standard::content-type: public.text", result.out)
|
||||
else:
|
||||
self.assertIn(
|
||||
"standard::content-type: application/x-zerosize", result.out
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user