1
0
Эх сурвалжийг харах

Fix incorrect return value in tests. (#11359)

Patrick Cloke 2 жил өмнө
parent
commit
319dcb955e

+ 1 - 0
changelog.d/11359.misc

@@ -0,0 +1 @@
+Require all files in synapse/ and tests/ to pass mypy unless specifically excluded.

+ 1 - 1
tests/storage/test_rollback_worker.py

@@ -33,7 +33,7 @@ def fake_listdir(filepath: str) -> List[str]:
         A list of files and folders in the directory.
     """
     if filepath.endswith("full_schemas"):
-        return [SCHEMA_VERSION]
+        return [str(SCHEMA_VERSION)]
 
     return ["99_add_unicorn_to_database.sql"]