> just a quick glance at the commits: you do not need to replace autopkgtest-pkg-python with home-grown code, just tell it what to import:
> echo oauth2_provider > debian/tests/pkg-python/import-name Thanks, I didn't know about that. However, when I added that in, autopkgtest seems to fail with: Removing autopkgtest-satdep (0) ... autopkgtest [15:10:19]: test autodep8-python3: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import django_oauth_toolkit; print(django_oauth_toolkit)" ; done autopkgtest [15:10:19]: test autodep8-python3: [----------------------- Testing with python3.7: Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'django_oauth_toolkit' autopkgtest [15:10:19]: test autodep8-python3: -----------------------] autopkgtest [15:10:20]: test autodep8-python3: - - - - - - - - - - results - - - - - - - - - - autodep8-python3 FAIL non-zero exit status 1 autopkgtest [15:10:20]: @@@@@@@@@@@@@@@@@@@@ summary autodep8-python3 FAIL non-zero exit status 1 The command I used: sudo autopkgtest -B ../*.deb -- schroot unstable-amd64-sbuild Am I missing something here? Need your guidance here. Thanks and regards, Nilesh