librelist archives

« back to archive

pygit2 pull request

pygit2 pull request

From:
Han-Wen Nienhuys
Date:
2012-03-30 @ 03:32
I tried opening a pull request through github, but I'm getting errors.

Please have a look at

 https://github.com/hanwen/pygit2/commit/21a366e049112bbfaac7714c43492d12ac82c80f

how do I run the tests?

$ python setup.py test
running test
running build
running build_ext
Traceback (most recent call last):
  File "setup.py", line 101, in <module>
    **kwargs)
  File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "setup.py", line 66, in run
    test.main()
  File "/usr/local/google/home/hanwen/vc/pygit2/test/__init__.py",
line 46, in main
    unittest.main(module=__name__, defaultTest='test_suite', argv=sys.argv[:1])
  File "/usr/lib/python2.6/unittest.py", line 816, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.6/unittest.py", line 843, in parseArgs
    self.createTests()
  File "/usr/lib/python2.6/unittest.py", line 849, in createTests
    self.module)
  File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.6/unittest.py", line 598, in loadTestsFromName
    test = obj()
  File "/usr/local/google/home/hanwen/vc/pygit2/test/__init__.py",
line 42, in test_suite
    return unittest.defaultTestLoader.loadTestsFromNames(modules)
  File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.6/unittest.py", line 584, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_blob'


-- 
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen

Re: [libgit2] pygit2 pull request

From:
J. David Ibanez
Date:
2012-03-30 @ 07:56
Sometimes the tests fail with that kind of information-less error.
In that case you will likely get a better error message if you try :

  >>> import pygit2

Note that right now pygit2/master works with libgit2/master.



On Fri, 30 Mar 2012 00:32:52 -0300
Han-Wen Nienhuys <hanwenn@gmail.com> wrote:

> I tried opening a pull request through github, but I'm getting errors.
> 
> Please have a look at
> 
>  
https://github.com/hanwen/pygit2/commit/21a366e049112bbfaac7714c43492d12ac82c80f
> 
> how do I run the tests?
> 
> $ python setup.py test
> running test
> running build
> running build_ext
> Traceback (most recent call last):
>   File "setup.py", line 101, in <module>
>     **kwargs)
>   File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
>     dist.run_commands()
>   File "/usr/lib/python2.6/distutils/dist.py", line 975, in
> run_commands self.run_command(cmd)
>   File "/usr/lib/python2.6/distutils/dist.py", line 995, in
> run_command cmd_obj.run()
>   File "setup.py", line 66, in run
>     test.main()
>   File "/usr/local/google/home/hanwen/vc/pygit2/test/__init__.py",
> line 46, in main
>     unittest.main(module=__name__, defaultTest='test_suite',
> argv=sys.argv[:1]) File "/usr/lib/python2.6/unittest.py", line 816,
> in __init__ self.parseArgs(argv)
>   File "/usr/lib/python2.6/unittest.py", line 843, in parseArgs
>     self.createTests()
>   File "/usr/lib/python2.6/unittest.py", line 849, in createTests
>     self.module)
>   File "/usr/lib/python2.6/unittest.py", line 613, in
> loadTestsFromNames suites = [self.loadTestsFromName(name, module) for
> name in names] File "/usr/lib/python2.6/unittest.py", line 598, in
> loadTestsFromName test = obj()
>   File "/usr/local/google/home/hanwen/vc/pygit2/test/__init__.py",
> line 42, in test_suite
>     return unittest.defaultTestLoader.loadTestsFromNames(modules)
>   File "/usr/lib/python2.6/unittest.py", line 613, in
> loadTestsFromNames suites = [self.loadTestsFromName(name, module) for
> name in names] File "/usr/lib/python2.6/unittest.py", line 584, in
> loadTestsFromName parent, obj = obj, getattr(obj, part)
> AttributeError: 'module' object has no attribute 'test_blob'
> 
> 



-- 
J. David Ibáñez
Itaapy <http://www.itaapy.com>         Tel +33 (0)1 42 23 67 45
9 rue Darwin, 75018 Paris              Fax +33 (0)1 53 28 27 88