While setting up Oracle XE to run the Django tests I found that individual tests or a small subgroup of them can be run without major problems. But while trying to run the entire suite this error happens:
Creating test database 'default'...
Creating test user...
Traceback (most recent call last):
File "./runtests.py", line 314, in <module>
failures = django_tests(int(options.verbosity), options.interactive, options.failfast, args)
File "./runtests.py", line 183, in django_tests
failures = test_runner.run_tests(test_labels, extra_tests=extra_tests)
File "django/upstream/django/test/simple.py", line 276, in run_tests
old_config = self.setup_databases()
File "django/upstream/django/test/simple.py", line 232, in setup_databases
connection.creation.create_test_db(self.verbosity, autoclobber=not self.interactive)
File "django/upstream/django/db/backends/creation.py", line 357, in create_test_db
call_command('syncdb', verbosity=max(verbosity - 1, 0), interactive=False, database=self.connection.alias)
File "django/upstream/django/core/management/__init__.py", line 166, in call_command
return klass.execute(*args, **defaults)
File "django/upstream/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "django/upstream/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "django/upstream/django/core/management/commands/syncdb.py", line 97, in handle_noargs
cursor.execute(statement)
File "django/upstream/django/db/backends/oracle/base.py", line 522, in execute
return self.cursor.execute(query, self._param_generator(params))
django.db.utils.DatabaseError: ORA-01658: unable to create INITIAL extent for segment in tablespace TEST_XE
The TEST_XE
tablespace left shows when seen through the Oracle XE Web administrative interface the Django test suite currently needs 140/150 MB of space.
(In [14468]) Fixed #14630 -- Increased maximum size of the Oracle tablespace datafile used for tests from 100MB to 200MB.
This allows the execution of the full Django test suite without running out of allocated space.