From a0ea5b059ac67cbd815077521a7683f504ab79d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 31 Dec 2020 00:10:26 +0200 Subject: text/x-python: add text/x-modelica false positive test case Fixed by https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/3 Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/127 --- tests/mime-detection/list | 2 ++ tests/mime-detection/test_issue127.py | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/mime-detection/test_issue127.py diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 2f5f7290..b225711d 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -371,6 +371,8 @@ test.jnlp application/x-java-jnlp-file # Python script test.py text/x-python test.pyx text/x-python ox +# https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/127 +test_issue127.py text/x-python ox # Python 3 script test3.py text/x-python3 x test.py3 text/x-python3 diff --git a/tests/mime-detection/test_issue127.py b/tests/mime-detection/test_issue127.py new file mode 100644 index 00000000..32fe6b2f --- /dev/null +++ b/tests/mime-detection/test_issue127.py @@ -0,0 +1,7 @@ +class Example: + + def __init__(self): + print("Init.") + +if __name__ == "__main__": + ex = Example() -- cgit v1.2.1