Project

General

Profile

Task #2513

Python 2 + 3 support

Added by Luke Murphey over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11/14/2019
Due date:
% Done:

100%

Associated revisions

Revision 85 (diff)
Added by luke.murphey over 4 years ago

Adding Python 2+3

Reference #2513

History

#1 Updated by Luke Murphey over 4 years ago

  • Subject changed from Python 2 + 3 to Python 2 + 3 support

#2 Updated by Luke Murphey over 4 years ago

     [exec] ======================================================================
     [exec] ERROR: test_run_webserver_with_post (__main__.TestWebhooksServerSSL)
     [exec] ----------------------------------------------------------------------
     [exec] Traceback (most recent call last):
     [exec]   File "unit.py", line 205, in test_run_webserver_with_post
     [exec]     self.assertEqual(self.results[0]['test_run_webserver_with_post'][0], 'SOMETESTVALUE')
     [exec] KeyError: 'test_run_webserver_with_post'
Observations:
  • The result has byte strings in the names:
    [OrderedDict([(b'test_run_webserver_with_post', [b'SOMETESTVALUE']), ('path', '/test_run_webserver/TEST'), ('full_path', '/test_run_webserver/TEST'), ('query', ''), ('command', 'POST'), ('client_address', '127.0.0.1'), ('client_port', 51681)])] {'success': True}
    
Questions:
  • Where is the name getting set?
    • in do_POST()
    • parse_multipart() and parse_qs() seem to
  • Is the issue that rfile is a byte-string?
  • Is the issue due to flatten?

#3 Updated by Luke Murphey over 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF