mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Merge branch 'wip/pwithnall/macos-gio-tool-fix' into 'main'
tests: Fix gio-tool.py test on macOS See merge request GNOME/glib!3701
This commit is contained in:
commit
8f36997aaa
@ -27,6 +27,7 @@ import collections
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
@ -125,7 +126,12 @@ class TestGioTool(unittest.TestCase):
|
|||||||
result = self.runGio(
|
result = self.runGio(
|
||||||
"info", "--attributes=standard::content-type", tmpfile.name
|
"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__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user