Coder Social home page Coder Social logo

txfixtures's People

Contributors

allenap avatar cjwatson avatar freeekanayaka avatar jelmer avatar manishtomar avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

txfixtures's Issues

python3-txfixtures: fails to install with Python 3.7

as reported at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904649

during a test with piuparts I noticed your package failed to install. As
per definition of the release team this makes the package too buggy for
a release, thus the severity.

From the attached log (scroll to the bottom...):

  Setting up python3-txfixtures (0.2.6-1) ...
    File "/usr/lib/python3/dist-packages/txfixtures/_twisted/testing.py", line 22
      self.async = False
               ^
  SyntaxError: invalid syntax
  
    File "/usr/lib/python3/dist-packages/txfixtures/tests/test_reactor.py", line 113
      self.reactor.async = True
                       ^
  SyntaxError: invalid syntax
  
  dpkg: error processing package python3-txfixtures (--configure):
   installed python3-txfixtures package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   python3-txfixtures


"async" has become a reserved keyword in Python 3.7

randomly failing tests

as reported at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853056

I tried to build this package in stretch with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config 
running config
I: pybuild base:184: python3.5 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:184: /usr/bin/python setup.py build 
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/txfixtures

[... snipped ...]

test_reset_hung_thread (txfixtures.tests.test_reactor.ReactorTest)
txfixtures.tests.test_reactor.ReactorTest.test_reset_hung_thread ... ok
test_reset_thread_and_reactor_died (txfixtures.tests.test_reactor.ReactorTest)
txfixtures.tests.test_reactor.ReactorTest.test_reset_thread_and_reactor_died ... ok
test_reset_thread_died_but_reactor_is_running (txfixtures.tests.test_reactor.ReactorTest)
txfixtures.tests.test_reactor.ReactorTest.test_reset_thread_died_but_reactor_is_running ... ok
test_fail (txfixtures._twisted.tests.test_threading.InterruptableCallFromThreadTest)
txfixtures._twisted.tests.test_threading.InterruptableCallFromThreadTest.test_fail ... ok
test_success (txfixtures._twisted.tests.test_threading.InterruptableCallFromThreadTest)
txfixtures._twisted.tests.test_threading.InterruptableCallFromThreadTest.test_success ... ok
test_timeout (txfixtures._twisted.tests.test_threading.InterruptableCallFromThreadTest)
txfixtures._twisted.tests.test_threading.InterruptableCallFromThreadTest.test_timeout ... ok

======================================================================
ERROR: test_no_min_uptime (tests.test_service.ServiceProtocolIntegrationTest)
tests.test_service.ServiceProtocolIntegrationTest.test_no_min_uptime
----------------------------------------------------------------------
_StringException: Empty attachments:
  fake-process
  twisted-log

pythonlogging:'': {{{
Service process spawned
Service process exited: A process has ended with a probable error condition: process ended with exit code 1.
Give up waiting for the service to be ready: minimum uptime not yet elapsed
}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/deferredruntest.py", line 206, in _log_user_exception
    raise e
testtools.deferredruntest.UncleanReactorError: The reactor still thinks it needs to do things. Close all connections, kill all processes and make sure all delayed calls have either fired or been cancelled:
  <twisted.internet.process.ProcessReader object at 0x7f4fb22c8e10>
  <twisted.internet.process.ProcessWriter object at 0x7f4fb22c8c50>
  <twisted.internet.process.ProcessReader object at 0x7f4fb22c8ed0>


----------------------------------------------------------------------
Ran 71 tests in 8.644s

FAILED (errors=1, skipped=2)
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m unittest discover -v 
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
debian/rules:9: recipe for target 'build-indep' failed
make: *** [build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

This is just how the build ends, not necessarily the relevant part.

I've put several build logs here:

https://people.debian.org/~sanvila/build-logs/txfixtures/

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.

The bug should be reproducible with sbuild on a single CPU virtual machine,
provided you try enough times (as the failure happens randomly).

modernize setup / fix tests

Once the currently three open PRs by @cjwatson got merged, we should

  • setup gh actions instead of Travis
  • add support for newer Python versions

Currently running tox is broken for all environments.

ERROR:   py27: commands failed
ERROR:   py35: commands failed
ERROR:   py36: commands failed
ERROR:   py37: commands failed
ERROR:   py38: commands failed
ERROR:   doc: commands failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.