diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2020-12-31 00:10:26 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2020-12-31 00:10:26 +0200 |
commit | a0ea5b059ac67cbd815077521a7683f504ab79d8 (patch) | |
tree | b6e14444e89ac697eaac0cf1ff01da29d220cdeb | |
parent | 98f737bfdc149f268d710612e3c3e254dbfe7cbe (diff) | |
download | shared-mime-info-a0ea5b059ac67cbd815077521a7683f504ab79d8.tar.gz |
text/x-python: add text/x-modelica false positive test casework/scop/python-modelica-false-positive
Fixed by https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/3
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/127
-rw-r--r-- | tests/mime-detection/list | 2 | ||||
-rw-r--r-- | tests/mime-detection/test_issue127.py | 7 |
2 files changed, 9 insertions, 0 deletions
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() |