diff --git a/tests/test_connection.py b/tests/test_connection.py
index <HASH>..<HASH> 100644
--- a/tests/test_connection.py
+++ b/tests/test_connection.py
@@ -297,7 +297,7 @@ class TestConnection(XvfbTest):
             cookies.append((i, c))
         for i, c in cookies:
             try:
-                name = ''.join(c.reply().name)
+                name = c.reply().name.to_string()
             except xcffib.xproto.BadAtom:
                 continue
             atoms.update({i: name}) # Lookup by number
ok, really fix the test this time :)