Edgewall Software
Modify

Opened 5 years ago

Closed 4 years ago

#13261 closed defect (worksforme)

TypeError is raised from apr_pool_t.__del__ on termination of functional-test with Subversion trunk

Reported by: Jun Omae Owned by:
Priority: normal Milestone:
Component: version control Version: 1.0.19
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

$ git log --max-count=1 HEAD
commit e86a59be505cfbd4a045d7b1b43475c86f2d31fe (HEAD, mirror/1.0-stable)
Author: jomae <jomae@af82e41b-90c4-0310-8c96-b1721e28e2e2>
Date:   Thu Jan 23 03:09:44 2020 +0000

    1.0.20dev: avoid using openssl from homebrew on building Python 2.6 for OSX in Travis CI (closes #13238)


    git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@17232 af82e41b-90c4-0310-8c96-b1721e28e2e2

$ make python=27-svn functional-test

Python: /home/jun66j5/venv/py27-svn/bin/python

  Package        Version
  -------------------------------------------------------
  Python       : 2.7.12 (default, Oct  8 2019, 14:14:10)
               : [GCC 5.4.0 20160609]
  Setuptools   : 42.0.2
  Pip          : 19.3.1
  Wheel        : 0.33.6
  Genshi       : 0.7.3 (with speedups)
  Babel        : 2.8.0
  sqlite3      : 2.6.0 (3.11.0)
  PySqlite     : 2.8.3 (3.31.1)
  MySQLdb      : 1.2.5
  Psycopg2     : 2.8.4 (dt dec pq3 ext lo64)
  SVN bindings : 1.14.0 (under development)
  Mercurial    : 5.3.1
  Pygments     : 2.5.2
  Textile      : 3.0.4
  Pytz         : 2019.3
  ConfigObj    : 5.0.6
  Docutils     : 0.16
  Twill        : 0.9
  LXML         : 4.5.0
  coverage     : 5.0.4
  figleaf      : not installed

Variables:
  PATH=/home/jun66j5/venv/py27-svn/bin:/home/jun66j5/bin:/home/jun66j5/.gem/ruby/2.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
  PYTHONPATH=.
  TRAC_TEST_DB_URI=
  server-options= -p 3000 -a '*,/home/jun66j5/src/trac-htdigest.txt,auth'  -e

External dependencies:
  Git version: git version 2.25.2
  Subversion version: 1.14.0-dev

python setup.py egg_info
running egg_info
writing requirements to Trac.egg-info/requires.txt
writing Trac.egg-info/PKG-INFO
writing top-level names to Trac.egg-info/top_level.txt
writing dependency_links to Trac.egg-info/dependency_links.txt
writing entry points to Trac.egg-info/entry_points.txt
reading manifest file 'Trac.egg-info/SOURCES.txt'
writing manifest file 'Trac.egg-info/SOURCES.txt'
python trac/tests/functional/__init__.py
.................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 193 tests in 180.170s

OK
Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound method apr_pool_t.__del__ of <libsvn.core.apr_pool_t; proxy of <Swig Object of type 'apr_pool_t *' at 0x7effbb6e28a0> >> ignored

Attachments (0)

Change History (4)

comment:1 by Jun Omae, 5 years ago

I found workaround to avoid the exception but I'm unsure why.

  • trac/tests/functional/__init__.py

    diff --git a/trac/tests/functional/__init__.py b/trac/tests/functional/__init__.py
    index 7bac166f3..144e7655f 100755
    a b from trac.tests.functional.better_twill import twill, b, tc, ConnectError  
    8181try:
    8282    # This is the first indicator of whether the subversion bindings are
    8383    # correctly installed.
    84     from svn import core
    85     has_svn = True
     84    import svn
    8685except ImportError:
    8786    has_svn = False
     87else:
     88    has_svn = True
    8889
    8990try:
    9091    from configobj import ConfigObj

comment:2 by Ryan J Ollos, 4 years ago

Milestone: 1.0.20next-stable-1.4.x

Please move back to 1.0.20 if you wish to fix for release 1.0.20 (#13294).

comment:3 by Ryan J Ollos, 4 years ago

Milestone: next-stable-1.4.x1.4.3

In TracSubversion#Checklist we recommend running python -c "from svn import core". Have you seen any cases in which python -c "import svn" succeeds but python -c "from svn import core" fails?

comment:4 by Ryan J Ollos, 4 years ago

Milestone: 1.4.3
Resolution: worksforme
Status: newclosed

I haven't seen the issue and the comment:1 change is already applied to 1.4-stable: tags/trac-1.4.2/trac/tests/functional/__init__.py@:63-68#L58.

Please reopen if there's an additional changes associated with this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.