cubicweb #3225832 broken dbapi.connect() url parsing [validation pending]

Calling dbapi.connect() with inmemory:// URLs fails with the following exception traceback (launched manually from ipython):

In [11]: cnx = dbapi.connect('inmemory://cadecole')
>>> ParseResult(scheme='inmemory', netloc='cadecole', path='', params='', query='', fragment='')
---------------------------------------------------------------------------
ConfigurationError                        Traceback (most recent call last)
<ipython-input-11-5df1753c5941> in <module>()
----> 1 cnx = dbapi.connect('inmemory://cadecole')

cubicweb/dbapi.pyc in connect(database, login, cnxprops, setvreg, mulcnx, initlog, **kwargs)
    225     print ">>>", puri
    226     if method == 'inmemory':
--> 227         config = cwconfig.instance_configuration(puri.path)
    228     else:
    229         config = cwconfig.CubicWebNoAppConfiguration()

cubicweb/cwconfig.pyc in config_for(cls, appid, config, debugmode, creating)
    918         """
    919         cls.load_available_configs()
--> 920         config = config or guess_configuration(cls.instance_home(appid))
    921         configcls = configuration_cls(config)
    922         return configcls(appid, debugmode, creating)

cubicweb/cwconfig.pyc in guess_configuration(directory)
    217     if len(modes) != 1:
    218         raise ConfigurationError('unable to guess configuration from %r %s'
--> 219                                  % (directory, modes))
    220     return modes[0]
    221

ConfigurationError: unable to guess configuration from '/home/rcardona/prefix/cubicweb.d/' []
prioritynormal
typebug
done in3.17.10
load0.100
load left0.000
closed by#9a44436cd5a5 [dbapi] Fix broken inmemory:// URLs parsing (closes #3225832)
patch[dbapi] Fix broken inmemory:// URLs parsing (closes #3225832) [applied]