#22213: Test failure: relative path in resolve_url -----------------------------------+-------------------- Reporter: afuna | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: 1.6 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+-------------------- Running against master:
➤ python tests/runtests.py resolve_url.tests.ResolveUrlTests ``` Testing against Django installed in 'code/django/django' Creating test database for alias 'default'... Creating test database for alias 'other'... ....E... {{{ ====================================================================== ERROR: test_relative_path (resolve_url.tests.ResolveUrlTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "code/django/tests/resolve_url/tests.py", line 29, in test_relative_path self.assertEqual('../', resolve_url('../')) File "code/django/django/shortcuts/__init__.py", line 151, in resolve_url File "code/django/django/core/urlresolvers.py", line 515, in reverse return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)) File "code/django/django/core/urlresolvers.py", line 387, in _reverse_with_prefix lookup_view = get_callable(lookup_view, True) File "code/django/django/utils/lru_cache.py", line 101, in wrapper result = user_function(*args, **kwds) File "code/django/django/core/urlresolvers.py", line 96, in get_callable mod = import_module(mod_name) File "python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 30, in import_module raise TypeError("relative imports require the 'package' argument") TypeError: relative imports require the 'package' argument }}} Looks to have been introduced in 8251438cb8c1d47779e9fc33cfa84dad9851a774 -- Ticket URL: <https://code.djangoproject.com/ticket/22213> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/048.25b464d7920528f04528266c3fe6bdc5%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.