You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/twine/files/twine-1.11.0-tests.patch

19 lines
432 B

Check for python2 support first, then python3. This should help avoid importing
the wrong module for python2 where the builtins module can be provided by the
futures package.
--- twine-1.11.0/tests/test_utils.py
+++ twine-1.11.0/tests/test_utils.py
@@ -19,9 +19,9 @@
import textwrap
try:
- import builtins
-except ImportError:
import __builtin__ as builtins
+except ImportError:
+ import builtins
import pytest