[Mailman-Developers] MM3 Test difficulty

Mark Sapiro mark at msapiro.net
Tue Mar 4 06:30:20 CET 2014


On 03/03/2014 07:10 PM, Barry Warsaw wrote:
> 
> What happens if you `pip install -U zope.interface` in the virtualenv?


I don't know what was wrong, but I started over. I removed the
virtualenv and then did

virtualenv --system-site-packages /var/py27
source /var/py27/bin/activate
pip install -U zope.interface
cd /var/MM/3.0                      (my MM 3 directory)
python setup.py develop
nose2 -v

and this time all was well except two tests failed. The only thing I can
think of is at one point, not realizing this was a 32-bit OS, I rsync'd
the virtualenv from the 64-bit machine. I thought I had cleaned that all
up, but there may have been some .pyc or ?? left.

Anyway, it appears this was my fault in not setting up the virtualenv
properly somehow.

Regarding the failed tests, they seem to possibly be test issues rather
than core issues, but the interesting thing is they don't fail on the
other machine. Possibly there's a race condition. Also, if I just run
the failing tests (and one other) with

nose2 -v -P "users.rst|inject.rst"

they don't fail.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
-------------- next part --------------
======================================================================
FAIL: /var/MM/3.0/src/mailman/commands/docs/inject.rst
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2201, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for inject.rst
  File "/var/MM/3.0/src/mailman/commands/docs/inject.rst", line 0

----------------------------------------------------------------------
File "/var/MM/3.0/src/mailman/commands/docs/inject.rst", line 29, in inject.rst
Failed example:
    command.process(args)
Differences (ndiff with -expected +actual):
      Available queues:
          archive
          bad
          bounces
          command
          digest
          in
          nntp
          out
          pipeline
          retry
          shunt
    +     test
          virgin


======================================================================
FAIL: /var/MM/3.0/src/mailman/model/docs/users.rst
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2201, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for users.rst
  File "/var/MM/3.0/src/mailman/model/docs/users.rst", line 0

----------------------------------------------------------------------
File "/var/MM/3.0/src/mailman/model/docs/users.rst", line 276, in users.rst
Failed example:
    getUtility(ILanguageManager).add('it', 'iso-8859-1', 'Italian')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest users.rst[74]>", line 1, in <module>
        getUtility(ILanguageManager).add('it', 'iso-8859-1', 'Italian')
      File "/var/MM/3.0/src/mailman/languages/manager.py", line 48, in add
        raise ValueError('Language code already registered: ' + code)
    ValueError: Language code already registered: it


----------------------------------------------------------------------
Ran 611 tests in 291.114s

FAILED (failures=2)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/mailman-developers/attachments/20140303/a045041d/attachment-0001.sig>


More information about the Mailman-Developers mailing list