From 50d8363650da20ace18d6559584962f6544aeb6e Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 24 Jun 2020 17:26:58 -0400 Subject: [PATCH] Pin virtualenv to 20.0.23 --- src/dependency_injector/providers.c | 14 +------------- tests/unit/providers/test_configuration_py2_py3.py | 3 +-- tox.ini | 1 + 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/dependency_injector/providers.c b/src/dependency_injector/providers.c index e239637a..f02dc847 100644 --- a/src/dependency_injector/providers.c +++ b/src/dependency_injector/providers.c @@ -2596,7 +2596,6 @@ static const char __pyx_k_memo[] = "memo"; static const char __pyx_k_name[] = "__name__"; static const char __pyx_k_read[] = "read"; static const char __pyx_k_test[] = "__test__"; -static const char __pyx_k_yaml[] = "yaml"; static const char __pyx_k_Error[] = "Error"; static const char __pyx_k_RLock[] = "RLock"; static const char __pyx_k_class[] = "__class__"; @@ -3084,7 +3083,6 @@ static PyObject *__pyx_n_s_update; static PyObject *__pyx_n_s_value; static PyObject *__pyx_n_s_values; static PyObject *__pyx_n_s_version_info; -static PyObject *__pyx_n_s_yaml; static PyObject *__pyx_lambda_funcdef_19dependency_injector_9providers_lambda(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_memo); /* proto */ static int __pyx_pf_19dependency_injector_9providers_8Provider___init__(struct __pyx_obj_19dependency_injector_9providers_Provider *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_19dependency_injector_9providers_8Provider_2__call__(struct __pyx_obj_19dependency_injector_9providers_Provider *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */ @@ -63370,7 +63368,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1}, {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1}, {&__pyx_n_s_version_info, __pyx_k_version_info, sizeof(__pyx_k_version_info), 0, 0, 1, 1}, - {&__pyx_n_s_yaml, __pyx_k_yaml, sizeof(__pyx_k_yaml), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { @@ -65210,15 +65207,6 @@ if (!__Pyx_RefNanny) { __pyx_L16_try_end:; } - /* "dependency_injector/providers.pyx":33 - * # except ImportError: - * # yaml = None - * yaml = None # <<<<<<<<<<<<<< - * - * from .errors import ( - */ - if (PyDict_SetItem(__pyx_d, __pyx_n_s_yaml, Py_None) < 0) __PYX_ERR(1, 33, __pyx_L1_error) - /* "dependency_injector/providers.pyx":36 * * from .errors import ( @@ -65236,7 +65224,7 @@ if (!__Pyx_RefNanny) { PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_NoSuchProviderError); /* "dependency_injector/providers.pyx":35 - * yaml = None + * # yaml = None * * from .errors import ( # <<<<<<<<<<<<<< * Error, diff --git a/tests/unit/providers/test_configuration_py2_py3.py b/tests/unit/providers/test_configuration_py2_py3.py index d1e616b5..13355753 100644 --- a/tests/unit/providers/test_configuration_py2_py3.py +++ b/tests/unit/providers/test_configuration_py2_py3.py @@ -1,12 +1,11 @@ """Dependency injector config providers unit tests.""" -import contextlib import os import tempfile import unittest2 as unittest -from dependency_injector import containers, providers, errors +from dependency_injector import containers, providers class ConfigTests(unittest.TestCase): diff --git a/tox.ini b/tox.ini index f9c344b6..7c7e9457 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ envlist= [testenv] deps= unittest2 + virtualenv==20.0.23 commands= unit2 discover -s tests/unit -p test_*_py3.py