Skip to content

Commit

Permalink
Py3.11: fix UT (file open mode)
Browse files Browse the repository at this point in the history
FAILED tests/test_ws_sr_padron.py::test_main_csv - ValueError: invalid mode: 'rU'
  • Loading branch information
reingart committed Nov 22, 2022
1 parent e409779 commit ab028a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ws_sr_padron.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def main():

if "--csv" in sys.argv:
csv_reader = csv.reader(
open("tests/entrada.csv", "rU"), dialect="excel", delimiter=","
open("tests/entrada.csv", "r"), dialect="excel", delimiter=","
)
csv_writer = csv.writer(open("salida.csv", "w"), dialect="excel", delimiter=",")
encabezado = next(csv_reader)
Expand Down

0 comments on commit ab028a9

Please sign in to comment.