diff options
-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() |