from common import *
import tempfile


def test_from_json(ds_local):
    df = ds_local

    # Create temporary json files
    pandas_df = df.to_pandas_df(df)
    tmp = tempfile.mktemp('.json')
    with open(tmp, 'w') as f:
        f.write(pandas_df.to_json())

    tmp_df = vaex.from_json(tmp, copy_index=False)

    assert tmp_df.column_names == df.column_names
    assert len(tmp_df) == len(df)
    assert tmp_df.x.tolist() == df.x.tolist()
    assert tmp_df.bool.tolist() == df.bool.tolist()

@@ -313,24 +313,28 @@
 %0A    assert 
+set(
 tmp_df.colum
@@ -340,20 +340,25 @@
 mn_names
+)
  == 
+set(
 df.colum
@@ -364,16 +364,17 @@
 mn_names
+)
 %0A    ass

Use set to compare elements between two lists (making them immutable)