Unverified Commit 38e287d5 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #335708 from eclairevoyant/xdp-trash

xdg-desktop-portal: disable bad test
parents f99442e5 a2b8e09f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -60,6 +60,9 @@ stdenv.mkDerivation (finalAttrs: {
    # While upstream has `XDG_DESKTOP_PORTAL_DIR`, it is meant for tests and actually blocks
    # any configs from being loaded from anywhere else.
    ./nix-pkgdatadir-env.patch

    # test tries to read /proc/cmdline, which is not intended to be accessible in the sandbox
    ./trash-test.patch
  ];

  nativeBuildInputs = [
+18 −0
Original line number Diff line number Diff line
diff --git a/tests/test_trash.py b/tests/test_trash.py
index d745cd2..173e3e5 100644
--- a/tests/test_trash.py
+++ b/tests/test_trash.py
@@ -24,13 +24,6 @@ class TestTrash:
     def test_version(self, portal_mock):
         portal_mock.check_version(1)
 
-    def test_trash_file_fails(self, portal_mock):
-        trash_intf = portal_mock.get_dbus_interface()
-        with open("/proc/cmdline") as fd:
-            result = trash_intf.TrashFile(fd.fileno())
-
-        assert result == 0
-
     def test_trash_file(self, portal_mock):
         trash_intf = portal_mock.get_dbus_interface()