diff --git a/src/packbits.py b/src/packbits.py
index <HASH>..<HASH> 100644
--- a/src/packbits.py
+++ b/src/packbits.py
@@ -59,7 +59,7 @@ def encode(data):
         result.append(256-(repeat_count - 1))
         result.append(data[pos])
 
-    while  pos < len(data)-1:
+    while pos < len(data)-1:
         current_byte = data[pos]
 
         if data[pos] == data[pos+1]:
diff --git a/test_packbits.py b/test_packbits.py
index <HASH>..<HASH> 100644
--- a/test_packbits.py
+++ b/test_packbits.py
@@ -62,7 +62,7 @@ def test_encode_long_raw():
     print(encoded)
     assert packbits.decode(encoded) == data
 
-def test_encode_long_raw():
+def test_encode_long_raw2():
     data = b'12345678' * 16
     encoded = packbits.encode(data)
     assert packbits.decode(encoded) == data
rename test (it was not executed before)