Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471864 - dev-python/django-compressor-1.3 fails tests
Summary: dev-python/django-compressor-1.3 fails tests
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 475342
  Show dependency tree
 
Reported: 2013-05-31 03:09 UTC by Mike Gilbert
Modified: 2018-04-21 19:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Test log (django-compressor.log,26.76 KB, text/plain)
2013-05-31 03:09 UTC, Mike Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2013-05-31 03:09:56 UTC
Created attachment 349700 [details]
Test log

See log.
Comment 1 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2013-06-30 18:10:18 UTC
They don't even run here (tried from the source directly, same results)

 * python2_7: running distutils-r1_run_phase python_test
django-admin.py test compressor --settings=compressor.test_settings
Traceback (most recent call last):
  File "/usr/bin/django-admin.py-python2.7", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib64/python2.7/site-packages/django/core/management/commands/test.py", line 49, in run_from_argv
    super(Command, self).run_from_argv(argv)
  File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/usr/lib64/python2.7/site-packages/django/core/management/commands/test.py", line 72, in handle
    failures = test_runner.run_tests(test_labels)
  File "/usr/lib64/python2.7/site-packages/discover_runner/runner.py", line 153, in run_tests
    suite = self.build_suite(test_labels, extra_tests)
  File "/usr/lib64/python2.7/site-packages/discover_runner/runner.py", line 102, in build_suite
    tests = self.test_loader.discover(start_dir=label, **kwargs)
  File "/usr/lib64/python2.7/site-packages/unittest2/loader.py", line 224, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/usr/lib64/python2.7/site-packages/unittest2/loader.py", line 273, in _find_tests
    raise ImportError(msg % (mod_name, module_dir, expected_dir))
ImportError: 'test_settings' module incorrectly imported from '/var/tmp/portage/dev-python/django-compressor-1.3/work/django_compressor-1.3-python2_7/lib/compressor'. Expected '/var/tmp/portage/dev-python/django-compressor-1.3/work/django_compressor-1.3/compressor'. Is this module globally installed?
Comment 2 Mike Gilbert gentoo-dev 2013-06-30 22:05:00 UTC
+  30 Jun 2013; Mike Gilbert <floppym@gentoo.org> django-compressor-1.3.ebuild:
+  Change to build dir before running tests.
Comment 3 Mike Gilbert gentoo-dev 2013-07-02 15:07:47 UTC
(In reply to Mike Gilbert from comment #2)

To clarify: this does make the tests pass, but simple lets them run without complaining about being installed globally.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 19:10:42 UTC
Closing in favor of the newer bug.