summaryrefslogtreecommitdiff
path: root/user/py3-wcwidth/run-tests.patch
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-08-06 07:41:23 -0500
committerMax Rees <maxcrees@me.com>2019-08-06 07:41:23 -0500
commit14c406339da6f5ff970b71c38f84218de51b423c (patch)
tree569fad6f01bd402a44fa815bf785f63b45dd469c /user/py3-wcwidth/run-tests.patch
parentee3fa0e95d09e1a90a9157f184b877c90e0be4d8 (diff)
downloadpackages-14c406339da6f5ff970b71c38f84218de51b423c.tar.gz
packages-14c406339da6f5ff970b71c38f84218de51b423c.tar.bz2
packages-14c406339da6f5ff970b71c38f84218de51b423c.tar.xz
packages-14c406339da6f5ff970b71c38f84218de51b423c.zip
user/py3-wcwidth: new package
Diffstat (limited to 'user/py3-wcwidth/run-tests.patch')
-rw-r--r--user/py3-wcwidth/run-tests.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/user/py3-wcwidth/run-tests.patch b/user/py3-wcwidth/run-tests.patch
new file mode 100644
index 000000000..8d62e0962
--- /dev/null
+++ b/user/py3-wcwidth/run-tests.patch
@@ -0,0 +1,16 @@
+--- wcwidth-0.1.7/wcwidth/tests/test_core.py 2016-07-02 00:13:27.000000000 -0400
++++ wcwidth-0.1.7/wcwidth/tests/test_core.py 2019-08-06 08:38:15.420011741 -0400
+@@ -136,3 +136,13 @@ def test_combining_spacing():
+ # verify,
+ assert length_each == expect_length_each
+ assert length_phrase == expect_length_phrase
++
++if __name__ == "__main__":
++ test_hello_jp()
++ test_wcswidth_substr()
++ test_null_width_0()
++ test_control_c0_width_negative_1()
++ test_combining_width_negative_1()
++ test_combining_cafe()
++ test_combining_enclosing()
++ test_combining_spacing()