diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2021-03-30 08:04:47 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2021-03-30 08:04:47 +0200 |
commit | 6c17628365abfcd7d5868f6f812390380c0ad1ec (patch) | |
tree | 460aabc930925adfd3f5475f37f8406091ca6f55 /tests | |
parent | 128430e028e5f32a3258e8ee4bb29c32c9740f70 (diff) | |
download | pygobject-6c17628365abfcd7d5868f6f812390380c0ad1ec.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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gi.py | 2 |
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]+\)>") |