mirror of
https://github.com/fergalmoran/picard.git
synced 2026-05-24 03:46:13 +00:00
On plugin import error unset sys.modules again
This commit is contained in:
32
test/data/testplugins/importerror/dummyplugin.py
Normal file
32
test/data/testplugins/importerror/dummyplugin.py
Normal file
@@ -0,0 +1,32 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Picard, the next-generation MusicBrainz tagger
|
||||
#
|
||||
# Copyright (C) 2019-2021 Laurent Monin
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
|
||||
"""Dummy plugin for tests"""
|
||||
PLUGIN_NAME = "Dummy plugin"
|
||||
PLUGIN_AUTHOR = "Zas"
|
||||
PLUGIN_DESCRIPTION = "Dummy plugin description"
|
||||
PLUGIN_VERSION = "1.0"
|
||||
PLUGIN_API_VERSIONS = ["2.0"]
|
||||
PLUGIN_LICENSE = 'Dummy plugin license'
|
||||
PLUGIN_LICENSE_URL = 'dummy.plugin.url'
|
||||
|
||||
|
||||
raise ImportError
|
||||
Reference in New Issue
Block a user