Skip to content

Commit 1ed364d

Browse files
committed
Removed robot.bmp. Changed internal testing library to use os.urandom as source of bytes instead of that bitmap. robotframework#2222
1 parent 773e2f0 commit 1ed364d

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import os
22

3-
_dirs = __file__.split(os.sep)
4-
while True:
5-
if _dirs.pop() == 'atest':
6-
break
7-
8-
_BITMAP = os.path.join(os.sep.join(_dirs), 'robot.bmp')
9-
103

114
class BinaryDataLibrary:
125

@@ -21,7 +14,5 @@ def raise_byte_error(self):
2114
% (chr(0), chr(10), chr(127), chr(255)))
2215

2316
def print_binary_data(self):
24-
bitmap = open(_BITMAP, 'rb')
25-
print(bitmap.read())
26-
bitmap.close()
17+
print(os.urandom(100))
2718
print("*INFO* Binary data printed successfully")

robot.bmp

-118 KB
Binary file not shown.

0 commit comments

Comments
 (0)