Skip to content

Commit

Permalink
Merge pull request #2171 from nvmkuruc/usdbugs_310
Browse files Browse the repository at this point in the history
Use explicit integer division as argument to truncate in testUsdBugs

(Internal change: 2265954)
  • Loading branch information
pixar-oss committed Mar 14, 2023
2 parents 17f01ef + eba257c commit 6254871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxr/usd/usd/testenv/testUsdBugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def test_USD_5196(self):
# Now truncate layer to corrupt it.
fobj = open(f.name, "r+")
size = os.path.getsize(f.name)
fobj.truncate(size / 2)
fobj.truncate(size // 2)
fobj.close()
# Attempting to open the file should raise an exception.
with self.assertRaises(Tf.ErrorException):
Expand Down

0 comments on commit 6254871

Please sign in to comment.