Skip to content

Commit

Permalink
unix/coverage: Move coverage #if guard back to top of file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Jan 16, 2017
1 parent 50e14ca commit 9317fee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions unix/coverage.c
Expand Up @@ -11,6 +11,8 @@
#include "py/formatfloat.h"
#include "py/stream.h"

#if defined(MICROPY_UNIX_COVERAGE)

// stream testing object
typedef struct _mp_obj_streamtest_t {
mp_obj_base_t base;
Expand Down Expand Up @@ -130,9 +132,6 @@ STATIC const mp_obj_type_t mp_type_stest_textio2 = {
.locals_dict = (mp_obj_dict_t*)&rawfile_locals_dict2,
};


#if defined(MICROPY_UNIX_COVERAGE)

// str/bytes objects without a valid hash
STATIC const mp_obj_str_t str_no_hash_obj = {{&mp_type_str}, 0, 10, (const byte*)"0123456789"};
STATIC const mp_obj_str_t bytes_no_hash_obj = {{&mp_type_bytes}, 0, 10, (const byte*)"0123456789"};
Expand Down

0 comments on commit 9317fee

Please sign in to comment.