[Python-modules-team] Bug#849333: faker: Non-determistically FTBFS due to tests sometimes exposing UnboundLocalError

Chris Lamb lamby at debian.org
Sun Dec 25 18:01:56 UTC 2016


Source: faker
Version: 0.7.7-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Dear Maintainer,

faker's testsuite appears to non-deterministically vary in behaviour,
causing a FTBFS when it exposes a programming error:

  […]

  ======================================================================
  ERROR: test_documentor (faker.tests.FactoryTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "faker/tests/__init__.py", line 207, in test_documentor
      print_doc(output=output)
    File "faker/cli.py", line 110, in print_doc
      excludes=base_provider_formatters):
    File "faker/documentor.py", line 32, in get_formatters
      (provider, self.get_provider_formatters(provider, **kwargs))
    File "faker/documentor.py", line 87, in get_provider_formatters
      example = self.generator.format(name)
    File "faker/generator.py", line 66, in format
      return self.get_formatter(formatter)(*args, **kwargs)
    File "faker/providers/profile/__init__.py", line 47, in profile
      "ssn": self.generator.ssn(),
    File "faker/providers/ssn/fi_FI/__init__.py", line 42, in ssn
      separator += 'A'
  UnboundLocalError: local variable 'separator' referenced before assignment
  
  ----------------------------------------------------------------------
  Ran 45 tests in 2.150s
  
  FAILED (errors=1)
  debian/rules:27: recipe for target 'override_dh_auto_test' failed
  make[1]: *** [override_dh_auto_test] Error 1
  make[1]: Leaving directory '«BUILDDIR»'
  debian/rules:10: recipe for target 'build' failed
  make: *** [build] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  […]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: faker.0.7.7-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 8715 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20161225/d0ad60dd/attachment-0001.obj>


More information about the Python-modules-team mailing list