Hey, In working on [1], I ran into a weird test failure in test_manager.py: test_default_float that happens in Python 2 [2] but not Python 3 [3]. I thought this was related to the changes in that PR, since Python 2 tests had run successfully before for the cffi branch [4]. However, I found that I could reproduce the failure in [2], even from the main cffi branch.
If anyone else could try to replicate this, or possibly track down the seg fault, I'd appreciate it. I've made a gist with everything to reproduce it here: https://gist.github.com/flacjacket/118e3b3d69e076e26c11 Here's what to do: 1. Checkout the cffi branch from https://github.com/tych0/qtile/tree/cffi (you can get this in your git repo doing something like: git remote add tych0 https://github.com/tych0/qtile.git; git fetch tych0; git checkout -t tych0/cffi). You'll need all the appropriate dependencies (see https://github.com/tych0/qtile/blob/cffi/.travis.yml) 2. Download test.py and test_config.py from the gist (I put them in ~), you'll need to change the `sys.path.insert(0, '/home/sean/qtile/qtile')` lines to point to your git directory 3. Run the commands in run_tests.sh in the gist. You can run these commands in separate terminals if you want to see output separately. Here again, I've hardcoded my git directory, so you'll have to change that. Note the location of test.py and test_config.py are hardcoded, modify if you put them somewhere other than ~. Trying to track it down, I get a segfault coming from libqtile/xcbq.pyL534, `return self.conn.conn.core.ConfigureWindow(self.wid, mask, values)` when running the command `c.window.move_floating(10, 20, 42, 42)`, which makes me think it's an xcffib problem (????). Changing python2 to python3 (2.7 to 3.3), my test.py script runs successfully. Any feedback on this would be greatly appreciated, thanks! Sean [1] https://github.com/tych0/qtile/pull/5 [2] https://travis-ci.org/tych0/qtile/jobs/31291683 Python 2.7, see first error in test.test_manager.test_default_float [3] https://travis-ci.org/tych0/qtile/jobs/31291687 above tests pass for Python 3.3 [4] https://travis-ci.org/tych0/qtile/builds/31285277 Python 2.7 passes here -- You received this message because you are subscribed to the Google Groups "qtile-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
