Jim Paris
02ee18c410
Improve test coverage
4 years ago
Jim Paris
d1e241a213
Test calling NilmDB.close twice to improve coverage
4 years ago
Jim Paris
c5c7f638e7
Allow NilmDB.close to be called twice
4 years ago
Jim Paris
a1218fd20b
Remove superfluous conditional
4 years ago
Jim Paris
c58a933d21
Improve branch coverage
4 years ago
Jim Paris
7874e1ebfa
Improve coverage
4 years ago
Jim Paris
79b410a85b
Remove conditional as we know these args are always present
4 years ago
Jim Paris
6645395924
Improve branch coverage for numpyclient
4 years ago
Jim Paris
beb3eadd38
Include branches in coverage report
4 years ago
Jim Paris
edf4568e8f
Fix error in interval comparisons; add coverage
4 years ago
Jim Paris
a962258b2a
Improve coverage for bulkdata
4 years ago
Jim Paris
fa011559c1
Fix bulkdata bug checking for paths ending in /
4 years ago
Jim Paris
349eec3942
Improve coverage for client
4 years ago
Jim Paris
99500f3a88
Update coverage config
4 years ago
Jim Paris
54eccb17aa
Adjust test for new argparse output
4 years ago
Jim Paris
cc8ac74a37
Put good and bad UTF-8 into one of the test data files
4 years ago
Jim Paris
3be904d158
Work around a Numpy deprecation warning
4 years ago
Jim Paris
5d9fc5500c
Make httpclient.put take a content-type instead of picking one
No reason to push the content-type decision into httpclient
4 years ago
Jim Paris
57751f5b32
Consistently use bytes everywhere for stream data
Previous commits went back and forth a bit on whether the various APIs
should use bytes or strings, but bytes appears to be a better answer,
because actual data in streams will always be 7-bit ASCII or raw
binary. There's no reason to apply the performance penalty of
constantly converting between bytes and strings.
One drawback now is that lots of code now has to have "b" prefixes on
strings, especially in tests, which inflates this commit quite a bit.
4 years ago
Jim Paris
1c005518d8
Remove old unicode helpers
4 years ago
Jim Paris
3279f7ef2c
Fix misnamed function
4 years ago
Jim Paris
a2e124f444
Make command a required argument for new argparse changes
4 years ago
Jim Paris
6d673bd2be
Fix commandline test character encoding issues for Py3
4 years ago
Jim Paris
613a3185e3
Avoid FutureWarning from Numpy
4 years ago
Jim Paris
c83ee65cf7
Fix integer divisions for Python 3
4 years ago
Jim Paris
113633459d
Don't wait for thread to exit in __del__
This can hit a deadlock waiting for the thread to exit. We don't
need to wait; it will die when it can, or get terminated when the
interpreter exits.
4 years ago
Jim Paris
41abf53085
Remove references to local copy of datetime_tz
4 years ago
Jim Paris
fef3e1d31e
Fix various string/bytes issues with Python 3
4 years ago
Jim Paris
02db87eee6
Fix encoding issues in HTTP chunked responses
4 years ago
Jim Paris
ad85c3dd29
CherryPy bug 1200 is no longer an issue
4 years ago
Jim Paris
0e6ccd687b
Fix missing Exception.message in Python 3
4 years ago
Jim Paris
85d4c419fd
Decode server responses from raw bytes to strings
Uses utf-8, or whatever the server response indicates.
4 years ago
Jim Paris
159278066c
Fix datetime_tz import
4 years ago
Jim Paris
b69358a185
Fix error with reraising exceptions in serializer
4 years ago
Jim Paris
e82ef60e2e
Response bodies in HTTP are raw bytes
4 years ago
Jim Paris
911d9bc284
Encode Unicode to raw bytes for server responses
4 years ago
Jim Paris
752a9b36ae
Use Python 3 super(), and add self.message back to my exceptions
4 years ago
Jim Paris
97d17de8ad
Port bulkdata and rocket to Python 3
Main change is to use raw bytes for filenames everywhere
4 years ago
Jim Paris
5da7e6558e
Fix interval comparisons for Python 3
4 years ago
Jim Paris
1928caa1d7
Use pip version of datetime_tz; fix timestamper test
4 years ago
Jim Paris
5db034432c
Update mustclose and test_mustclose for Python 3 (this was hard!)
4 years ago
Jim Paris
55119a3e07
Port cython and C code to python 3
4 years ago
Jim Paris
a9eff10dbf
Fix 2to3 mistake
4 years ago
Jim Paris
0f5c1c0db6
Run 2to3 automatic fixes over entire tree
4 years ago
Jim Paris
d17365ca37
Update build system for Python 3
4 years ago
Jim Paris
8125d9c840
Fix nilmdb-fsck issue caused by 022b50950f
8 years ago
Jim Paris
ba55ad82f0
Use a pure-python version of bisect_left, to fix 32-bit issues
The default bisect module includes a fast C implementation, which
requires that array indices fit within the system "long" type. For
32-bit systems, that's not acceptable, as the table indices for raw
data can exceed 2^32 very quickly. A pure python version works fine.
8 years ago
Jim Paris
45c81d2019
Fix test that would fail if reordered, or in a different timezone
8 years ago
Jim Paris
78cfda32e3
Handle another exception from some versions of dateutil.parser
8 years ago
Jim Paris
3658d3876b
Rename deprecated config option
The new version works in Cherrypy 3.2
8 years ago