diff options
Diffstat (limited to 'dev-python/fqdn/files')
-rw-r--r-- | dev-python/fqdn/files/1.4.0-tests.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/fqdn/files/1.4.0-tests.patch b/dev-python/fqdn/files/1.4.0-tests.patch new file mode 100644 index 000000000000..0804be7d175b --- /dev/null +++ b/dev-python/fqdn/files/1.4.0-tests.patch @@ -0,0 +1,24 @@ +From 0d6a6191a49fac252a96f72bd3193f21ae56424f Mon Sep 17 00:00:00 2001 +From: ypcrts <32625281+ypcrts@users.noreply.github.com> +Date: Sun, 26 Apr 2020 01:51:43 -0400 +Subject: [PATCH] test __str__ to be congruent with absolute + +--- + tests/test_fqdn.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/test_fqdn.py b/tests/test_fqdn.py +index 37fcf52..60c8607 100644 +--- a/tests/test_fqdn.py ++++ b/tests/test_fqdn.py +@@ -21,8 +21,8 @@ def test_constructor_raises_on_bytes(self): + + def test_str(self): + d = "greatdomain.com" +- assert d == str(FQDN(d)) +- assert d == str(FQDN(d + ".")) ++ f = FQDN(d) ++ assert f.absolute == str(f) + + def test_rfc_1035_s_2_3_4__label_max_length(self): + self.__assert_valid( |