diff options
author | Christoph Reiter <creiter@src.gnome.org> | 2015-06-21 23:55:02 +0200 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2015-07-02 20:43:02 +0200 |
commit | 1ed8200abefc3e51e4d2083b1372695aaf4163fb (patch) | |
tree | 27cc0de083dd08c5b1ec7240fe2287619f54e686 | |
parent | 79cf1f70d247b5a4d33d1e60107e47903ca76055 (diff) | |
download | pygobject-1ed8200abefc3e51e4d2083b1372695aaf4163fb.tar.gz |
Fix test regression when xdg-user-dirs is not installed.
GLib.get_user_special_dir is only guaranteed to always return
a path in case GLib.UserDirectory.DIRECTORY_DESKTOP is passed.
This was unintentionally changed to DIRECTORY_MUSIC
in 9948a67e677c8a351f2de1708.
https://bugzilla.gnome.org/show_bug.cgi?id=751299
-rw-r--r-- | tests/test_glib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_glib.py b/tests/test_glib.py index 5ede8497..6331d118 100644 --- a/tests/test_glib.py +++ b/tests/test_glib.py @@ -38,7 +38,7 @@ class TestGLib(unittest.TestCase): def test_xdg_dirs(self): d = GLib.get_user_data_dir() self.assertTrue('/' in d, d) - d = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_MUSIC) + d = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DESKTOP) self.assertTrue('/' in d, d) with warnings.catch_warnings(): warnings.simplefilter('ignore', PyGIDeprecationWarning) |