mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
remove numpy from test, and fix compiling single binary mscp
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
|
||||
import pytest
|
||||
import numpy
|
||||
import hashlib
|
||||
import os
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
import hashlib
|
||||
import numpy
|
||||
import os
|
||||
|
||||
|
||||
@@ -39,7 +38,7 @@ class File():
|
||||
|
||||
def make_content_random(self):
|
||||
with open(self.path, "wb") as f:
|
||||
f.write(numpy.random.bytes(self.size))
|
||||
f.write(os.urandom(self.size))
|
||||
|
||||
def cleanup(self):
|
||||
os.remove(self.path)
|
||||
|
||||
Reference in New Issue
Block a user