Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async Tests Failed on Windows #10

Open
wearpants opened this issue Apr 2, 2013 · 0 comments
Open

Async Tests Failed on Windows #10

wearpants opened this issue Apr 2, 2013 · 0 comments
Labels

Comments

@wearpants
Copy link
Owner

wearpants commented Apr 2, 2013

Due to multiprocessing code on windows.

======================================================================
ERROR: test_async (tests.test_outputs.FileOutputTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\tests\test_outputs.py"
, line 55, in test_async
    o = self.make_output(-1, True)
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\tests\test_outputs.py"
, line 38, in make_output
    msg_buffer = msg_buffer, close_atexit=False)
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\twiggy\outputs.py", li
ne 154, in __init__
    super(FileOutput, self).__init__(format, msg_buffer, close_atexit)
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\twiggy\outputs.py", li
ne 70, in __init__
    self._async_init(msg_buffer, close_atexit)
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\twiggy\outputs.py", li
ne 82, in _async_init
    self.__child.start()
  File "C:\Python27\lib\multiprocessing\process.py", line 104, in start
    self._popen = Popen(self)
  File "C:\Python27\lib\multiprocessing\forking.py", line 244, in __init__
    dump(process_obj, to_child, HIGHEST_PROTOCOL)
  File "C:\Python27\lib\multiprocessing\forking.py", line 167, in dump
    ForkingPickler(file, protocol).dump(obj)
  File "C:\Python27\lib\pickle.py", line 224, in dump
    self.save(obj)
  File "C:\Python27\lib\pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\Python27\lib\pickle.py", line 419, in save_reduce
    save(state)
  File "C:\Python27\lib\pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "C:\Python27\lib\pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\Python27\lib\pickle.py", line 681, in _batch_setitems
    save(v)
  File "C:\Python27\lib\pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "C:\Python27\lib\pickle.py", line 748, in save_global
    (obj, module, name))
PicklingError: Can't pickle <function __child_main at 0x00C71870>: it's not foun
d as twiggy.outputs.__child_main

======================================================================
ERROR: test_async_unlocked (tests.test_outputs.FileOutputTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\tests\test_outputs.py"
, line 62, in test_async_unlocked
    o = self.make_output(-1, False)
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\tests\test_outputs.py"
, line 38, in make_output
    msg_buffer = msg_buffer, close_atexit=False)
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\twiggy\outputs.py", li
ne 154, in __init__
    super(FileOutput, self).__init__(format, msg_buffer, close_atexit)
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\twiggy\outputs.py", li
ne 70, in __init__
    self._async_init(msg_buffer, close_atexit)
  File "D:\Documents and Settings\rickkylw\Desktop\twiggy\twiggy\outputs.py", li
ne 82, in _async_init
    self.__child.start()
  File "C:\Python27\lib\multiprocessing\process.py", line 104, in start
    self._popen = Popen(self)
  File "C:\Python27\lib\multiprocessing\forking.py", line 244, in __init__
    dump(process_obj, to_child, HIGHEST_PROTOCOL)
  File "C:\Python27\lib\multiprocessing\forking.py", line 167, in dump
    ForkingPickler(file, protocol).dump(obj)
  File "C:\Python27\lib\pickle.py", line 224, in dump
    self.save(obj)
  File "C:\Python27\lib\pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\Python27\lib\pickle.py", line 419, in save_reduce
    save(state)
  File "C:\Python27\lib\pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "C:\Python27\lib\pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\Python27\lib\pickle.py", line 681, in _batch_setitems
    save(v)
  File "C:\Python27\lib\pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "C:\Python27\lib\pickle.py", line 748, in save_global
    (obj, module, name))
PicklingError: Can't pickle <function __child_main at 0x00C71870>: it's not foun
d as twiggy.outputs.__child_main

----------------------------------------------------------------------

Imported from Bitbucket.

@wearpants wearpants added this to the 0.4 milestone Jan 21, 2015
@wearpants wearpants modified the milestones: 0.4, 0.5 reboot Oct 18, 2017
@wearpants wearpants added bug and removed bug labels Oct 20, 2017
@wearpants wearpants removed this from the 0.5 milestone Oct 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant