summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2021-03-30 08:04:47 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2021-03-30 08:42:09 +0200
commit3c8e95786771ea576a2a179fee7929c85a6fe3d2 (patch)
tree5ffafb3081823adcad3bc23ec4f04b07d9fc225c
parent42b384a787b1f5ce4adbcb64d5981696db851427 (diff)
downloadpygobject-3c8e95786771ea576a2a179fee7929c85a6fe3d2.tar.gz
tests: fix test with glib 2.68 re GLocalFile
Since 2.68 Gio.File.new_for_path("") returns a GDummyFile instead of a GLocalFile. We don't really care since we just want to test that there is a name despite the type not being in the gir, so just pass a potentially valid path instead.
-rw-r--r--tests/test_gi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 5e7d0e35..f6552665 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -2406,7 +2406,7 @@ class TestGObject(unittest.TestCase):
def test_nongir_repr(self):
self.assertRegex(
- repr(Gio.File.new_for_path("")),
+ repr(Gio.File.new_for_path("/")),
r"<__gi__.GLocalFile object at 0x[^\s]+ "
r"\(GLocalFile at 0x[^\s]+\)>")