anonymousland-synapse/tests
Oleg Girko 6c1ec5a1bd Use more portable syntax using attrs package.
Newer syntax

    attr.ib(factory=dict)

is just a syntactic sugar for

    attr.ib(default=attr.Factory(dict))

It was introduced in newest version of attrs package (18.1.0)
and doesn't work with older versions.

We should either require minimum version of attrs to be 18.1.0,
or use older (slightly more verbose) syntax.
Requiring newest version is not a good solution because
Linux distributions may have older version of attrs (17.4.0 in Fedora 28),
and requiring to build (and package)
newer version just to use newer syntactic sugar in only one test
is just too much.
It's much better to fix that test to use older syntax.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
2018-07-10 00:38:49 +01:00
..
api run isort 2018-07-09 16:09:20 +10:00
appservice run isort 2018-07-09 16:09:20 +10:00
config run isort 2018-07-09 16:09:20 +10:00
crypto run isort 2018-07-09 16:09:20 +10:00
events run isort 2018-07-09 16:09:20 +10:00
federation run isort 2018-07-09 16:09:20 +10:00
handlers run isort 2018-07-09 16:09:20 +10:00
http run isort 2018-07-09 16:09:20 +10:00
replication run isort 2018-07-09 16:09:20 +10:00
rest run isort 2018-07-09 16:09:20 +10:00
storage run isort 2018-07-09 16:09:20 +10:00
util run isort 2018-07-09 16:09:20 +10:00
__init__.py run isort 2018-07-09 16:09:20 +10:00
server.py Use more portable syntax using attrs package. 2018-07-10 00:38:49 +01:00
test_distributor.py run isort 2018-07-09 16:09:20 +10:00
test_dns.py run isort 2018-07-09 16:09:20 +10:00
test_event_auth.py run isort 2018-07-09 16:09:20 +10:00
test_federation.py run isort 2018-07-09 16:09:20 +10:00
test_preview.py run isort 2018-07-09 16:09:20 +10:00
test_server.py run isort 2018-07-09 16:09:20 +10:00
test_state.py run isort 2018-07-09 16:09:20 +10:00
test_test_utils.py run isort 2018-07-09 16:09:20 +10:00
test_types.py run isort 2018-07-09 16:09:20 +10:00
unittest.py cleanups 2018-06-27 11:38:03 +01:00
utils.py run isort 2018-07-09 16:09:20 +10:00